Steven Sheldon
Steven Sheldon

Reputation: 1

SikuliX: How to control precision of image matching?

I am new to SikuliX.

I would like to use it to automate testing of dialogs. To do this, I will have SikuliX find() for a dialog on screen, and compare it to a known good image captured of that dialog.

This is my code, and it basically works:

try:
    dialog_region = find("1738866435466.png")
    print("Main dialog found on the screen")
except FindFailed:
    print("Main dialog not found on the screen")

However, I have changed some text values in some of the fields in the dialog, and find() is still saying that the dialog was found.

Is there a way to control the precision of match for find()?

Upvotes: 0

Views: 21

Answers (0)

Related Questions