sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34425
Re: [Question #270965]: Not able to click on a button - desktop application
Question #270965 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/270965
Status: Open => Answered
RaiMan proposed the following answer:
-- 1:
Your code does not make much sense.
Supposing NextButton.PNG is the button image and Next.PNG is the image
of the text inside the button
-- Either:
Screen scr = new Screen();
Region reg = scr.find("resources/NextButton.PNG");
reg.highlight(1);
//Thread.sleep(3000); //not needed
reg.click();
-- or (needs SikuliX 1.1.0)
Screen scr = new Screen();
scr.click(scr.find("resources/NextButton.PNG").highlight(1));
-- or
Screen scr = new Screen();
Region reg = scr.find("resources/NextButton.PNG");
reg.highlight(1);
reg.click("resources/Next.PNG"); # supposing the // is a typo here
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.