Page 1 of 1

Image comparison

Posted: Tue May 26, 2015 7:31 am
by BHARATHMR
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.

Re: Image comparison

Posted: Tue May 26, 2015 7:55 am
by odklizec
Hi,

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.