sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35641
Re: [Question #274127]: Not working methods of the class App - close(), focus(),
Question #274127 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/274127
Eugene S proposed the following answer:
You are having this problem because of how you define your firefox
variable.
When you write:
firefox = App.open(r"C:\Program Files (x86)\Mozilla Firefox\firefox.exe")
you assign the output of whatever value that is created as a result of
EXECUTING the FireFox browser
The error:
[error] AttributeError ( 'NoneType' object has no attribute 'close' )
says exactly that.
To make it work properly, you must do it like was offered by @masuo and first create an instance of the type App. The you will be able to use the App methods on it.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.