← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #220066]: Multiple images of Same Kind- How to Handle with Sikuli

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
easiest way is to restrict the search region to the area containing the
button you want.

example on this web page:

header = find("image of text Question Information.png")
reg = header.below(60).left(1).right(150) # see comment
reg.click("image of yellow edit sys mol.png")

comment: this defines the the area (150 x 60) relatively (below) to a
given match.

In the end, it will click the edit button of the Language aspect.

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