Our application requires verification of the text within multiple PDF files. Almost on each page, we have an option to open PDF file and I would like to verify if it includes specific text. So, "Verify_Text_In_Pdf" is very important method which I can't currently use because it always returns some kinda error. If I use it on publicly available application, I get an error: "Cannot parse the PDF reason:Error: End-of-File, expected line". Below is the simple steps.
- Navigate to "https://data.hrsa.gov/maps/map-gallery" page
- Click on "Health Professional Shortage Areas" Tab
- Click on "Health Professional Shortage Areas - Primary Care" link
- Verify "Health Professional Shortage Areas (HPSA) - Primary Care" title in PDF file
If I use any lower environment, I get error: "sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target".
Same issue happens with all PDF files all over the website. It used to work just fine and now most of our scripts can't be completed due to this issue with this method.
Is there any issue with this method and are you planning to fix it? At this moment, I stuck with multiple automated test cases which are using this method and are failing.