Automating PDF doc-Fails while running in diff monitor
Posted: Thu May 22, 2014 9:30 pm
Hi,
I am trying to automate a 7 page PDF file generated by my web application using Ranorex version 5.0.2.17874. I am using Ranorex Record & playback. I was able to do the text validation & image validation successfully. But when I change the monitor(smaller than the one I used for recording) the test fails for most of the data validations & image validations. It is trying to locate elements which cannot be found in that screen(as the screen is smaller than the recorded one) or it some times finds a different text
than the searched text in the same position & it fails.
Is there any solution for this problem?
I have heard that image validation has some limitations & it fails if ran in different monitors than the recorded one but how about text validations?
This is the path of a text of my pdf file from Ranorex spy:
/form[@title~'^mypdf']/element[@instance='3']/element[@instance='1']/element[@class='AVL_AVView']/element[@class='AVL_AVView']/element[@class='AVL_AVView']/element[@instance='0']/container[@accessiblename='']/container/table[2]/row[8]/cell[1]/text[@accessiblerole='Text']
Thanks,
svs
I am trying to automate a 7 page PDF file generated by my web application using Ranorex version 5.0.2.17874. I am using Ranorex Record & playback. I was able to do the text validation & image validation successfully. But when I change the monitor(smaller than the one I used for recording) the test fails for most of the data validations & image validations. It is trying to locate elements which cannot be found in that screen(as the screen is smaller than the recorded one) or it some times finds a different text
than the searched text in the same position & it fails.
Is there any solution for this problem?
I have heard that image validation has some limitations & it fails if ran in different monitors than the recorded one but how about text validations?
This is the path of a text of my pdf file from Ranorex spy:
/form[@title~'^mypdf']/element[@instance='3']/element[@instance='1']/element[@class='AVL_AVView']/element[@class='AVL_AVView']/element[@class='AVL_AVView']/element[@instance='0']/container[@accessiblename='']/container/table[2]/row[8]/cell[1]/text[@accessiblerole='Text']
Thanks,
svs