Image comparison

Ask general questions here.
Posts: 19
Joined: Thu Apr 16, 2015 5:55 am

Image comparison

Post by BHARATHMR » Tue May 26, 2015 7:31 am

In my test I was checking screen shot contains and not contains scroll bar.
1.I gave screen shot contain scroll bar it was successful.
2.I gave screen shot not containing scroll bar, for this I am validating with ‘NotExist’ repository item scroll bar. After execution in report file I observed ‘Element for item ‘scroll bar repository’ does exist.

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

Re: Image comparison

Post by odklizec » Tue May 26, 2015 7:55 am


It's hard to say what's wrong without some more details about Ranorex version, your AUT and especially Ranorex solution. Could you please post a sample solution depicting your problem? How exactly you added screenshot with "not existing" scrollbar?

BTW, why are you using image validation if the scrollbar is in the repository? Using image validation should be a last resort in cases there is no way to identify the GUI element via Ranorex "tracking" feature (due to badly or not implemented accessibility). If you are able to identify the scrollbar, there should be no need to use image validation, which is nowhere as reliable as validating element via repo/xpath.
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