Question #679122 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/679122
Status: Open => Answered
RaiMan proposed the following answer:
I have no idea, where this error comes from.
I made the following test with the latest build of 1.1.4:
class GA4(object):
def prepare_my_application(self, myApp):
self.stoppedmyapp = False
self.startedmyapp = App.open(myApp, 5)
def stop_my_application(self, myApp):
self.stoppedmyapp = App.close(myApp)
if self.stoppedmyapp:
self.startedmyapp = None
def prepare_test_case(self, myApp):
wait(2)
def status(self):
print "started:", self.startedmyapp, "\nstopped:", self.stoppedmyapp
test = GA4()
test.prepare_my_application(appName)
test.status()
test.prepare_test_case(appName)
test.stop_my_application(appName)
test.status()
which ran without errors and printed:
started: [33624:Automator ()] Automator.app
stopped: False
started: None
stopped: True
BTW: seems you are using real tabs for indentation. this makes problems, when
copying snippets to the outside (like here).
check that you have switched on in the Prefs:
Tab keys insert spaces ...
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp