← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #663391]: Action (Click/Type) on similar elements on a screen

 

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

RaiMan proposed the following answer:
after step 3:

// get the match from step 3
Match matchP2 = screen.getLastMatch()

//create a suitable region where to look for the "desired image"
regionP2 = matchP2.grow(left, right, top, bottom)

// look for the image
match desiredMatch = regionP2.exists("desiredImageOrPattern", 0)
if (null != desiredMatch) .... ; // found
else .... ; // not found

for exists and grow see the docs.

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