← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #290134]: [1.1.0] Linux: App.isRunning always reports false --- not yet implemented

 

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

    Status: Answered => Open

Divick is still having a problem:
Thanks for your response RaiMan but now with the following code:

<code>
firefox = App("firefox")

print firefox.hasWindow()
if firefox.hasWindow():
    firefox.focus()
else:
    firefox.open()
    print firefox.hasWindow()
    firefox.focus()

with firefox.window():
    print "Now trying to type in the address"
    type('l', KEY_CTRL)
    type("some-url" + Key.ENTER)
    wait("1460032228591.png", 30)

firefox.close()
</code>

it shows the following error:

/home/divick/work/cloudzilla/server/tests.sikuli
[debug] App.create: [-1:firefox]
False
[debug] App.open [13418:firefox]
False
[debug] App.focus:  [1:firefox]
[error] script [ /home/divick/work/cloudzilla/server/tests.sikuli ] stopped with error in line 9
[error] AttributeError ( 'NoneType' object has no attribute '__exit__' )

where the line number 9 is firefox.focus()

So something is not right here.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.