Question

enter image description here

I want to know that how to verify the report. Report is in PDF format and has table or images etc. Image is attached here for further information.

Was it helpful?

Solution

Selenium won't give you direct access to the contents of a PDF file.

Have you looked at JPDFUnit (a wrapper around PDFBox)?

I personally would separate the verification of PDF contents from the functional tests based on browser interactions.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top