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

Ask general questions here.
bhavani
Posts: 12
Joined: Mon Mar 25, 2019 6:51 am

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

Post by bhavani » Mon Apr 22, 2019 7:36 am

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
Attachments
Index.PNG
Index.PNG (132.18 KiB) Viewed 185 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5071
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Mon Apr 22, 2019 7:47 am

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

bhavani
Posts: 12
Joined: Mon Mar 25, 2019 6:51 am

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

Post by bhavani » Mon Apr 22, 2019 8:27 am

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
Attachments
TemplatePDF.7z
(131.22 KiB) Downloaded 6 times

User avatar
RobinHood42
Posts: 302
Joined: Fri Jan 09, 2015 3:24 pm

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

Post by RobinHood42 » Tue Apr 23, 2019 8:01 am

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
SampleRecording.png (98.48 KiB) Viewed 157 times
Cheers,
Robin :mrgreen:

bhavani
Posts: 12
Joined: Mon Mar 25, 2019 6:51 am

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

Post by bhavani » Fri May 03, 2019 1:27 pm

Hi,

I managed to get validate it using contains image attribute.

Thanks!