← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #660409]: Loop Fails

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
using such constructs like:
      wait(2.4)
      type(Key.LEFT)

can be risky, since it depends on that the targeted GUI gets ready for
accepting the Key.LEFT latest after 2.4 seconds. If this varies for
whatever reason, then you have a problem: if it takes 3 seconds, then
the Key.LEFT is a noop.

So you either have to adjust the wait times somehow, or you have to add
visual checks to decide, wether the GUI is ready for the next action or
instead of wait(time) use someRegion.wait(someImage) to wait for the GUI
to be ready.

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