← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #274718]: IDE command wait("image") not waiting for image to appear before script continues

 

Question #274718 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/274718

Eugene S proposed the following answer:
Well, the simplest solution to that would be just following an algorithm
like that:

1. If "Completed" detected, wait some time (if you know that it just flashes and disappears)
2. Check again
3. If still there --> means genuine "Completed"
4. If gone --> continue with the process


That algorithm can be buggy since theoretically it might find the "Completed" button twice while it was flashing and the process still running. So have a look at how likely that is to happen and tweak the wait times as you see fit.


Or perhaps you have any other indicators that can suggest that the process has not been completed yet despite the fact that the "Complete" button is showing.


Cheers,
Eugene

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.