← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #219004]: work inside a certain region

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
You might define a new region based on a given match or region using the so called spatial operators:
http://doc.sikuli.org/region.html#extending-a-region

example with this web page

logo = find("image of logo.png") # top left
# define the top area containing logo and menu
top = logo.left(1).right(500) 
# now restrict the search to the area below top
yellowButton = top.below().find("yellow button.png")
# only finds one of the buttons on the left side of the page

come back if you need more help

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