← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #680728]: Is there any wait until available in Sikuli

 

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

    Status: Open => Answered

Manfred Hampl proposed the following answer:
Maybe a timing issue.

How long does it take for the images to appear and disappear, and how
does the screen look like in the time between?

You wait until "screenWithLoading" appears, and then wait until "waitForMoment" vanishes.
Are they shown at the same time?
If not, you should first wait until "waitForMoment" appears, and only then wait for it to vanish, or put a short "sleep" in between to make sure that "waitForMoment" is really shown on screen.

Another possible error in your script could be that the "waitForMoment"
picture stays on the screen longer than the maximum waiting time (value
of setAutoWaitTimeout(), default 3 seconds).

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