← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #687391]: Chrome AutoOpen via Sikulix

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
This is how you should do it with SikuliX 2.x+

chrome = App("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe")
if not chrome.isRunning():
  print "closed - will open it"
  chrome.open(10)
  if not chrome.isRunning():
    print "still closed"
    exit()
print "running"
chrome.focus()
type("t",Key.CTRL)
type("l", Key.CTRL)
type("http://some-url.com";)
type(Key.ENTER)
wait(3)

for the details see the docs

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