← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #255595]: scrolling and choosing multiples

 

Question #255595 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255595

    Status: Open => Answered

RaiMan proposed the following answer:
-- does not work :/
what symptoms?
what errors do you get?

to avoid the not-seen situation (produces a FindFailed at the for
statement):

icons = () # empty list

if exists("iconimage.png", 0): # check if any is there
  icons = list(findAll("iconimage.png")) # make a list of matches
else:
  # here you might scroll down
  # and try again (needs an outer loop, that stops when end of page is reached)

for icon in icons: # loop through the list of matches (not sorted)
  print icon

Be aware: Sikuli only sees, what you can see on the screen currently.

You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.