sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33099
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: Answered => Solved
Iole confirmed that the question is solved:
Thank you for the prompt response however when running, if chrome is open: it runs but if the chrome is not open there is an error [error] script [ Swipe1 ] stopped with error in line 6
[error] java.lang.NullPointerException ( java.lang.NullPointerException )
Tried to re-dl the sikuli and this code works(strange...)
if(App("Google Chrome").window()):
print "Opened"
else:
print "Not opened"
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.