Question regarding Validate.ContainsImage

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Swisside
Posts: 92
Joined: Thu Oct 10, 2013 10:40 am

Question regarding Validate.ContainsImage

Post by Swisside » Thu Oct 31, 2013 10:42 am

Hello !


In the near future I will need to check whether an image is in a particular repository item.

However the size of the images will most likely be different. I'm trying to practice this particular example with no success.

So far validation fails although you can see the image in the repository (cf. validation screenshot).


Have a nice day


Boris
You do not have the required permissions to view the files attached to this post.
A simple thank you always does wonders !

Swisside
Posts: 92
Joined: Thu Oct 10, 2013 10:40 am

Re: Question regarding Validate.ContainsImage

Post by Swisside » Mon Nov 04, 2013 9:52 am

Would it be possible to answer or redirect me to some documentation if I failed to find the info by my self ?


Thanks in advance
A simple thank you always does wonders !

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Question regarding Validate.ContainsImage

Post by Support Team » Tue Nov 05, 2013 4:16 pm

Hello Boris,

As you wrote, the issue is that the image you try to search is greater than the searched image.

Please read the section Image-Based Automation in our user guide.
In general you cannot compare two images when they have different dimensions.
It will work when one image is a part of the other image but the dimensions of the smaller image must match the dimensions of the specific image (part of the image) in the bigger image.
You need to find a way to ensure that the size of the images remain the same.

Regards,
Bernhard