Ask a Question

Comparing a picture to the updaloed picture in the site

tmahender12
Frequent Contributor

Comparing a picture to the updaloed picture in the site

I have a requirement where i have picture in my regions, can u pls give code to compared 2 images, one image is at regions and other is present in a website.i wrote this code but its not working

 

  Set actualPicOnScreen = NameMapping.Sys.Process("dllhost").Window("Photo_Lightweight_Viewer", "Chrysanthemum.jpg - Windows Photo Viewer", 1).Window("Photos_PhotoCanvas", "", 1).Picture   'capture yourMappedObj's image
 
strbool=Regions.Chrysanthemum_jpg.Check(actualPicOnScreen)

 
  ' Comparing the images using the Compare method
  If strbool Then
    Log.Picture imageOnDisk, "Expected Image"
    Log.Picture actualPicOnScreen, "Actual Image"
    Log.Error "The compared images are not identical"
  End If




 

thanks

Mahender

1 REPLY 1
Ryan_Moran
Valued Contributor

Try regions.compare method as explained here.


''-Praise the sun and Give Kudos.''
cancel
Showing results for 
Search instead for 
Did you mean: