sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #24755
Re: [Question #245465]: Working with Sliders tutorial find fails
Question #245465 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/245465
Status: Open => Answered
Eugene S proposed the following answer:
Hi,
As long as the image FULLY appears in the region you are looking in, there shouldn't be a problem.
First though is to verify that the pattern/image you are looking is COMPLETELY enclosed in the region you are looking in. In order to do that you might consider using the ".highlight(x)" option that will help you visualize the regions you are working with.
So in your case. try something like that:
reg = find(<alert volume image>).right().highlight(1) #Take a look at the region you are going to use to find your "speaker icon"
Then, when you are certain that the "speaker icon" is fully enclosed in
region "reg", continue with:
reg.find(<speaker icon>).highlight(1) # you can highlight that part as
well
Eugene
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.