sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #13510
Re: [Question #210518]: Click button beside a label using Java
Question #210518 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/210518
Status: Open => Answered
RaiMan proposed the following answer:
principally ok.
the problem might be caused by right()
this is the region to the right of sample.find("lblFileUpload.png"), but with the height of this match/image.
So if the button does not totally lies inside, the find will fail.
To verify:
Match m = sample.find("lblFileUpload.png")
m.highlight(3);
m = m.right().exists("btnUpload.png");
if (m != null) sample.click(m);
else: System.exit();
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.