sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #46675
Re: [Question #667270]: While loop that stops when the condition is no longer met
Question #667270 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/667270
TestMechanic proposed the following answer:
My way:
#####
switchApp("Firefox.app")
type(Key.END) # go to end for the first time
while exists("PageEndBtn.png",2): # check for element for 2 seconds
click() # click on last found location form above
wait(5) # page reload
type(Key.END) # go to the end of page
#####
You may decide to replace wait above with waiting for some elements and adjust times as needed
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.