简体   繁体   中英

Images not recognized inside of a popup window (Sikuli)

I've wrote a java program using Sikuli which navigates through numerous pages of a flash application. Everything seems to work up until I get to a popup window, and then it's unable to recognize images in the window.

I've tried recapturing the images, and the Sikuli IDE recognizes them when I do an image compare on the current screen. Which leads me to believe that it's not related to similarity being too high.

Any possible ideas or solutions would be helpful.

Thanks,

Additional information:

if (screen.exists(continue_overview_img.similar(similarity),timeout) != null) {
screen.wait(2.0);
screen.click(continue_overview_img);
}

[error] Region.exists: seems that imagefile could not be found on disk

Do you mean you are not able to match images within the popup? If so, have you tried leveraging similarity threshold? Check this doc .

After seeing the error message the problem seems to be the image you check cannot be found by the script you run. Make sure the path you provide for the image is on your classpath.

In order to verify that try using absolute path.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM