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
Question regarding Validate.ContainsImage
Question regarding Validate.ContainsImage
You do not have the required permissions to view the files attached to this post.
A simple thank you always does wonders !
Re: Question regarding Validate.ContainsImage
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
Thanks in advance
A simple thank you always does wonders !
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Question regarding Validate.ContainsImage
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
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