I have a window in which there is a list of pictures and I need to compare them all with screenshot
I'm trying to do it, but it doesn't work:
Code: Select all
public void ValidateCompareImages()
{
try
{
IList<Ranorex.Picture> imagesList = Myrepo.ModalWindows.MyWindow.Find<Ranorex.Picture>;
foreach (Ranorex.Picture imageItem in imagesList)
{
Validate.CompareImage(repo.ModalWindows.MyWindow.ImageInfo, Image_Screenshot1, Image_Screenshot1_Options);
}
}
catch (Exception ex)
{
throw new InvalidOperationException("Failed to compare images: " + ex.Message);
}
Stanislav