← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #661213]: How to shorten time with tons of exists() if-statments

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
using exists(img, 0) makes sense in situations like you have (a series
of checks for alternatives) and if you do not use the implicit wait
(standard 3 seconds), but loop around one or more exists(img, 0) making
your own "wait" logic.

Since GUI's usually have their reaction times of up to 500 milliseconds
(not visible for humans), you must be careful with exists(img, 0) in
situations, where you check after an action like click, that is
interpreted by the GUI.

This is the reason behind the standard wait time, which normally is the
best choice for sequential workflows.

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