← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #293874]: I want to find a Element e.g. a Drop down icon in my Page.

 

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

    Status: Open => Answered

masuo proposed the following answer:
[Example:]
If you want to specify the area to search for the plus sign, you can use Region().

w = 20
h = 20
for x in range(20,100,w):
    for y in range(20,100,h):
        r = Region(x,y,w,h)
        r.highlight(1)
        if r.exists("plus.png",0):
            r.click()

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.