← Back to team overview

sikuli-driver team mailing list archive

[Question #237655]: Problem regarding wait(pattern)

 

New question #237655 on Sikuli:
https://answers.launchpad.net/sikuli/+question/237655

Hi guys,

I'm using Sikuli 1.0.1 to automate running some tests.  Here is what I'm doing in pseudo code:

open app
click(button) # starts the test
wait(button), FOREVER # wait for the button to return to its original state (test complete)
continue script

The problem with the above is sometimes Sikuli finds a match with "wait(button), FOREVER" before the test is complete. This happens intermittently so I think the button is returning to it's original state for a split second mid-test and sometimes Sikuli picks up on this and returns a match.

Is there any way to tell Sikuli not to return a match until the pattern has been seen for X amount of time? Or any other workaround?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.