← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #210949]: How to wait for db operation to be completed?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- Would it be better or more robust to waitVanish for the busy mouse cursor? 
not possible - no feature. The mouse cursor is not "visible" for Sikuli, since the used Java class Robot does not include the mouse cursor when capturing. So if there are no other visual effects, that tell you it is finished, then there is no possibility with the features of Sikuli.
If it is a standard DB, that can be accessed via JDBC, then there might be other possibilities directly with Python/Java, to check the status of the DB (do not know, wether this makes sense in your case)

--- How is the situation of dialogs that either disappear instantly or after at most a few second best dealt with?
both wait() and waitVanish() wait for the event the given max time to wait, but return in the moment, the event happens (wait -> appears, waitVanish -> disappears)
So giving a generous wait time does no harm at performance, but still gives a FindFailed if the wait time is reached without success (= robust - since it normally does not make sense to continue).

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