Image based verification different screen size

Ask general questions here.
sakshi.
Posts: 6
Joined: Mon Dec 24, 2018 6:02 am

Image based verification different screen size

Post by sakshi. » Tue Jan 15, 2019 1:54 am

Hi I am doing Image based verification where my script runs on
Chrome
I.E

I works on multiple screen
script fails if browser is opened in a shorter screen comparison to usual monitor
I have tried the similarity factor to reduce but still it fails.

Attaching the report generated when it fails along with screenshot.

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

Re: Image based verification different screen size

Post by odklizec » Tue Jan 15, 2019 8:47 am

Hi,

I'm afraid, there is no reliable way to perform image-based automation on different resolutions. This is why you should avoid image-based automation and use it only if there is really no other way, to identify an element (including GDI capture list).

May I ask why you are using image-based automation with Chrome and IE? If you are automating web-based projects, everything should be recognizable by xpaths? And xpaths are the only reliable way to performs TA.
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