← Back to team overview

sikuli-driver team mailing list archive

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

 

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

Hi,

Im new in sikuli and would like to ask for your help in how to determine that my script is running in google chrome for win or in mac

This is my code

if(App("Google Chrome").window()):
  print "Opened"
else:
 print "Not opened"

That script works fine in mac, sikuli knows when google chrome is opened however in windows. it always print "Opened" even if google chrome is not opened. 


Thanks,

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