sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06242
Re: [Question #175353]: How to find and verify the large image using the scroll bar
Question #175353 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/175353
Status: Open => Answered
RaiMan proposed the following answer:
img = "some-image.png" # the image to find
pos = Location(x, y) # a location inside the scrollable window
steps = 1 # to be adjusted to your needs
max = 100 # to be adjusted to your needs
found = None
while max > 0:
wheel(pos, WHEEL_DOWN, steps)
max -= steps
if exists(img, 0):
found = getLastMatch()
break
if not found: print "not found"; exit(1)
click(found) # as an example
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.