Page 1 of 1

How to verify if TOC gets redirected to the expected page in PDF

Posted: Mon Apr 22, 2019 7:36 am
by bhavani
Hi,

I am having a pdf file in which i need to go to the last page where Table of Contents(TOC)/Index is present. I need to automate the below part:
1) How do i do ctrl+Click on the PDF file in Ranorex
2) After clicking how to verify if the index which i have clicked has navigated to the same page number in the pdf document
I am a bit confused how to execute this using Ranorex recording/code.
PFA screenshots of pdf
Any help would be appreciated!

Regards,
Bhavani V

Re: How to verify if TOC gets redirected to the expected page in PDF

Posted: Mon Apr 22, 2019 7:47 am
by odklizec
Hi,

Please post the actual PDF, or an example PDF, which simulates the real one. Without example PDF, it’s next to impossible to suggest something reliable. Thanks.

Re: How to verify if TOC gets redirected to the expected page in PDF

Posted: Mon Apr 22, 2019 8:27 am
by bhavani
Hi,

I have created a sample file since i cant post the original one.
In this attached file if i go to the last page and click on the link then that link redirects to the expected page.

Regards,
Bhavani V

Re: How to verify if TOC gets redirected to the expected page in PDF

Posted: Tue Apr 23, 2019 8:01 am
by RobinHood42
Hi,

First of all, I recommend using Firefox for opening the PDF file for good object recognition. Also, please enable the GDI capture list for an even better object recognition: https://www.ranorex.com/help/latest/ran ... e-feature/

Now you should be able to track the elements within your PDF and you can use a validation action to check the page navigation, e.g.,
SampleRecording.png
Cheers,
Robin :mrgreen:

Re: How to verify if TOC gets redirected to the expected page in PDF

Posted: Fri May 03, 2019 1:27 pm
by bhavani
Hi,

I managed to get validate it using contains image attribute.

Thanks!