sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #09042
[Question #189093]: Loop doesnt work
New question #189093 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189093
Hi,
Some one please help on the below code.
I am testing a application screen of POS device via emulator. the screen has 10 radio buttons which i am trying to automate through the following code.the loop runs correctly for 3 times from top to button by clicking the radio button one by one.But when it reaches the 4 th time it doesnt click on the next radi button instead it starting from bottom and clicking randomly on the radio button.
for n in range(1,11):
if n == 1:
click("L.png")
click("Zupture.png")
wait(25)
else:
find("1330343286137.png")
m = getLastMatch().below()
click("1330343332028.png")
click("Zupture.png")
wait(25)
waitVanish("Processing.png")
wait(5)
If the above code is correct or i need to make some changes to make it click one by one radio button in the screen.
Awaiting for your valuable response.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.