sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #56046
Re: [Question #693707]: Problem with mouse clicks on images
Question #693707 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693707
RaiMan proposed the following answer:
The challenge apparently is, to wait until the button is in its final
place.
This indeed might take a varying amount of time, depending on the time
it takes until all (dynamic/scripted) elements of the page have finished
their setup and are in its final place/shape.
So the exists() has to be made more robust, to detect, when the button
is in its final place.
Something like this:
while True:
finalButton = region.exists(button, 0)
wait(0.3)
if finalbutton and finalButton.exists(button, 0): break
finalbutton.click()
This checks, wether the button is still in its place, after found by
region.exists(button, 0)
I will put this on the request list: option to wait until a found
pattern is no longer moving (sthg. like Pattern(img).isMoving())
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.