sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06219
Re: [Question #175280]: I´m testing an app that appears some "popup´s", how can i do to click on the "ok" button, in that popup? i´m writing in java + sikuli! thanks a lot"
Question #175280 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/175280
Status: Open => Answered
RaiMan proposed the following answer:
public static void main(String[] args) throws InterruptedException, AWTException{
Screen s = new Screen();
Robot Keyboard = new Robot();
try {
String myPath = ("C:\\SmartClientValidacao\\SmartClient.exe");
App.open (myPath);
s.wait("image-login/TOTVSParimet.png", 15.0);
s.click("Ok.png", 0);
s.wait("image-login/Sejabemvindo-1.png", 15.0);
--- the screen object ( Screen s = new Screen(); ) is only needed once and can be used all over the place
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.