Page 1 of 1

Compare while recording image and saved file

Posted: Mon Oct 15, 2018 11:17 am
by JorisS
Hello,

Creating a new post because I haven't found in the exemples here something similar.

Is there a way to get the name of a screenshot while recording ?

If my question is not clear I am trying to do something like this:
I have this screenshot of a graph saved manually with Ranorex (Save Screenshot...) which is my reference.
When running the test, I want to get the image that is at the same position and compare it with my reference to check if they are the same.

Any idea ?

Re: Compare while recording image and saved file

Posted: Mon Oct 15, 2018 11:25 am
by odklizec
Hi,

Please check this post...
loading-image-from-a-project-in-user-co ... tml#p33970
It shows how to validate a repository element with ref. image.

Eventually, check these examples:
https://www.ranorex.com/help/latest/han ... imagesibri
https://www.ranorex.com/help/latest/han ... automation

Re: Compare while recording image and saved file

Posted: Mon Oct 15, 2018 4:17 pm
by JorisS
Thank you for your answer.

Can I convert this freshly captured repository item to bitmap ?

Re: Compare while recording image and saved file

Posted: Tue Oct 16, 2018 8:57 am
by JorisS
Ok I found
CaptureDesktopImage(Element)
which seems to be what I'm looking for