← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #266528]: app.focus() not working after window title change (Windows 8.1)?

 

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

RaiMan proposed the following answer:
ok, ready.
Latest available Build: 1.1.0 2015-05-19_12:04nightly

this works now on Windows:

# chrome to open a given webpage
cmd = r'"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" http://sikulix.com'

# using an App instance
bc = App(cmd)
print bc
if not bc.isRunning():
  bc.open()
wait(3)
bc.close()

# reusing the App instance but changing open parameters
bc.setUsing("http://sikulix.com/quickstart";)
bc.open()
wait(3)
bc.close()
print bc

# using class methods
App.open(cmd)
wait(3)
# this works, because a running Chrome has the exe-name chrome.exe
App.close("chrome")

Thanks for insisting on a solution ;-)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.