Micro Focus QTP (UFT) Forums
How to verify that links within a PDF document are working - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: How to verify that links within a PDF document are working (/Thread-How-to-verify-that-links-within-a-PDF-document-are-working)



How to verify that links within a PDF document are working - AHu - 08-24-2012

Environment QTP 11, AcroQTP AddIn, Acrobat 9.5.2
Scenario: I have a situation where, after clicking an image, a PDF file is displayed within a browser window. I have been tasked to verify the correct page is being displayed and that the embedded links are working.

Status: I am able to verify the document by searching for strings of text using <cntrl> + <shift> + F and executing a checkpoint on the results inside of the search panel.

Problem: My problem is being able to verify that the embedded links are valid and active.

Results: The links are highlighted in the normal manner so Adobe is aware that they are links. If I record a click on the link I get Browser("Browser").WinObject("AVPageView").Click 240,198 When I replay the recorded statements it hangs on the following checkpoint because the link was never executed.
I installed AcroQTP to see if there was any functionality that would help me. The only significant change is that it no longer records Browser("Browser").WinObject("AVPageView").Click 240,198

Am I attempting the impossible?

I saw a comment on an Adobe forum
"The Aptt Plugin works with QTP 11; Adobe 10.1.1; Win 7, But the Catch is it, only works on Interactive Pdf Docs and Not on Flat PDF Read-Only Docs. In order for QTP to recognize objects the PDF Doc that you are trying to Automate needs to be interactive ( needs to have Edit fields, radio button, drop downs and such) and wont work on just read-only files since QTP treats it as Image Object and reads nothing out of it."

Anyone out there had any success with my type of requirement.