最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

comparison - SikuliX: How to control precision of image matching? - Stack Overflow

programmeradmin1浏览0评论

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()?

发布评论

评论列表(0)

  1. 暂无评论