← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #271600]: setApp (java)

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
you have to wait for the IE to startup and establish the window (might take a second+).
In your case the someapp.window() comes too fast.

--- with version 1.1.0:
scr = new Screen();
ie = new App("......\\iexplore.exe")
ie.open()
while (! ie.isRunning()) {
    scr.wait(0.5);
}
ie.window().highlight(2)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.