sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04881
Re: [Question #169360]: How to perform a single click just once even if image continue to exist
Question #169360 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/169360
Status: Open => Answered
RaiMan proposed the following answer:
--1. You are mixing tabs and spaces for indentation. This will lead to
problems in the long run. Only use tabs using tab and shift-tab.
--2. when you paste snippets here, you have to fill in some names like
image1, image2, ... for the thumbnails afterwards, so one can understand
your script better.
--3.
.click() should give a syntax error
--4. your problem
has to be done in 2 steps:
1. wait for the image and then click
2. wait for the image to disappear and start all over again
the principle - adjust it to your needs
while True:
wait(image1, FOREVER)
click(some-image)
waitVanish(image1, FOREVER)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.