I have a requirement to compare the images in the PDF file to the font end of the web application. I am using the Selenium Web Driver and I have tried to compare with PDFBox but it won't read the images. Is there any way to achieve this? please suggest
-
Please delete your comment and put the key information into a new answer. Old comments are periodically deleted, where answers are not.– Kate Paulk ♦May 5, 2017 at 15:48
-
Can you clarify the requirement? Do you need to test that the data in the PDF is the same as the website? Is this some sort of form? Do you have access to the code which is generating the PDF?– unlikelyzeroMay 11, 2017 at 17:03
2 Answers
Selenium can not do this out of the box, but you can combine it with Sikuli. Or you use a web testing software with built-in PDF testing support.
With Selenium, you can take a screenshot.
You can try to create a PDF file with the same structure as you the one you have, and compare both.