Here are steps to reproduce:
* In Recorder, record following steps:
- start msPaint
- open some existing image from the disk
* start Ranorex Spy, capture screenshot of that image in msPaint (ElementMspaint), save it to "C:\captureTest\test.png"
* add validation code to the script:
It fails all the time. Why?
Code: Select all
Bitmap image = Imaging.Load ("C:\\captureTest\\test.png"); Validate.ContainsImage (repo.FormScreenShot_png___Paint.ElementMspaintInfo, image, Imaging.FindOptions.Default, "Validation: All figures are correctly drawn");