← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #268406]: Need to find a way for sikuli to know if its running its scripts in google chrome via windows or mac

 

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

    Status: Needs information => Answered

RaiMan proposed the following answer:
with the latest 1.1.0 you can try this:

if Settings.isMac():
    chrome = App("Google Chrome")
else:
    chrome = App("chrome")

if not chrome.isRunning():
    print "Chrome not running"
    exit()

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