← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #217786]: Regarding findAll of Finder class

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
this works on this page and returns all matches of the small yellow edit
symbol.

switchApp("Safari")
img = "1356688886456.png" # edit symbol

# normal findAll()
ms = list(findAll(img))
print len(ms)

# using Finder()
f = Finder(capture(SCREEN))
f.findAll(img)
i = 0
while f.hasNext(): 
    i += 1
    f.next()
print i

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