1

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

2
  • 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? May 11, 2017 at 17:03

2 Answers 2

1

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.

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.