sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34571
Re: [Question #271257]: I am not finding the right solution for my code
Question #271257 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271257
Eugene Maslov proposed the following answer:
Try also highlighting to see the details.
And wait(1) after page-down will help avoiding confusions if the browser scrolls the site smoothly and the image is captured during scrolling.
notFound=True
while not exists("PrivacyPolic.png"): #bottom of the page
type(Key.PAGE_DOWN)
wait(1)
target=exists("Albatross.png",0)
if target: #in order to locate an image
target.highlight(2)
popup("Hurray!")
notFound = False
break
if notFound:
popup("OMG")
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.