goran_gasparini
14 years agoNew Contributor
Regions.Compare
During a simple region comparation i have serveral problems
1. comparation files sometimes
2. needed to create different stored images for IE and FF
As you can see from the code below, sStoredImage contains a portion of sCurrentImage , which is an image object i get from a web application
my function is :
if regions.FindRegion(sStoredImage,sCurrentImage,0,0,true,false,25) is nothing then
log.Picture(sCurrentImage ),"Actual Image: "
log.Picture(regions.GetPicture(sStoredImage)),"Expected Image: "
else
isImageCorrect=true
end if
What could be the problem? Is it possible that the behavior is different using IE or FF!
Thanx
1. comparation files sometimes
2. needed to create different stored images for IE and FF
As you can see from the code below, sStoredImage contains a portion of sCurrentImage , which is an image object i get from a web application
my function is :
if regions.FindRegion(sStoredImage,sCurrentImage,0,0,true,false,25) is nothing then
log.Picture(sCurrentImage ),"Actual Image: "
log.Picture(regions.GetPicture(sStoredImage)),"Expected Image: "
else
isImageCorrect=true
end if
What could be the problem? Is it possible that the behavior is different using IE or FF!
Thanx