Page 1 of 1

Ranorex PDF Check

Posted: Fri Feb 23, 2018 10:07 am
by DavidH
Hi,

I'm trying to verify a pdf file, but it's not working as I expect.

When I track a part of the text on the first page I get a repository item:

text:

Code: Select all

element[@instance='3']/element[@instance='0']/element[@class='AVL_AVView']/element[@class='AVL_AVView']/element[@class='AVL_AVView']/element[@instance='0']/container[@accessiblename='']/container[@accessiblename='']/text[5]
When scrolling down to a different part of the pdf, let's say page 4, and I highlight the above text element, it recognizes a part of the text on page 4.
The same thing occurs when I just scroll down on the first page, but still be on the first page. When highlighting, it recognizes a different text.
How can I make sure that each element is specific and not "what is into view".

I've updated the xpath expression to have part of the text

Code: Select all

element[@instance='3']/element[@instance='0']/element[@class='AVL_AVView']/element[@class='AVL_AVView']/element[@class='AVL_AVView']/element[@instance='0']/container[@accessiblename='']/container[@accessiblename='']/text[@text~'Verzekerin']
but If the element is not in view, then the item is not found.

How should I properly test the layout and data of a pdf? :|

Description properties of the pdf:
Description.PNG
Security properties of the pdf:
Security.PNG

Re: Ranorex PDF Check

Posted: Mon Feb 26, 2018 8:56 am
by odklizec
Hi,

Please upload the problematic PDF file or at very least, a Ranorex snapshot (not screenshot!) of the element in question. There is nothing anyone here can do or suggest without seeing either of these two things. Thanks.

Generally speaking, PDF files are not so easy to automate ;)