sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #41057
Re: [Question #406805]: Script fail without proper message
Question #406805 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/406805
Status: Open => Answered
Alex Lunyov proposed the following answer:
For example:
button_OK_img = Pattern(mybuttonOK.png).similar(0.85) # this could just
be a picture you paste in your script using sikuli tools
button_OK_reg = Region(100, 123, 30, 20) # this is a
region on the screen where 30 × 20 px word "OK" on a button is expected
to appear at some moment.
than you use:
button_OK_reg.wait(button_OK_img, FOREVER)
Sikuli will stop and wait forever (till you turn off the computer or
interrupt the workflow manually) for the OK button in the place where it
should appear.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.