← Back to team overview

sikuli-driver team mailing list archive

[Bug 1567782] [NEW] [1.1.0] Linux: App.isRunning not yet implemented

 

Public bug reported:

Here is the code that I am trying to run on Linux with sikuli 1.1.0:

<code>
firefoxApp = App("firefox")
App.open("firefox")
while not firefoxApp.isRunning():
    print "Waiting for firefox.isRunning", firefoxApp.isRunning()
    wait(1)

firefoxApp.focus()
</code>

With this code, I see that it keeps on waiting for the app as
firefoxApp.isRunning reports false even though the "firefox" launches
fine.  This code is similar to what is suggested in another question:
https://answers.launchpad.net/sikuli/+question/274127.

If I change my code to following:
<code>
firefoxApp = App("firefox")
firefox = App.open("firefox")
while not firefox.isRunning():
    print "Waiting for firefox.isRunning", firefox.isRunning()
    wait(1)

firefoxApp.focus()
...
...
firefoxApp.close()
</code>

it complains with message:

[error] script [ /home/divick/work/server/tests.sikuli ] stopped with error in line 7
[error] AttributeError ( 'NoneType' object has no attribute '__exit__' )


I have tried all sort of combinations but it has issues one way or another. The code and documentation doesn't seem to match. I would appreciate any help.

Thanks,
Divick

** Affects: sikuli
     Importance: High
     Assignee: RaiMan (raimund-hocke)
         Status: In Progress

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.1

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1567782

Title:
  [1.1.0] Linux: App.isRunning not yet implemented

Status in Sikuli:
  In Progress

Bug description:
  Here is the code that I am trying to run on Linux with sikuli 1.1.0:

  <code>
  firefoxApp = App("firefox")
  App.open("firefox")
  while not firefoxApp.isRunning():
      print "Waiting for firefox.isRunning", firefoxApp.isRunning()
      wait(1)

  firefoxApp.focus()
  </code>

  With this code, I see that it keeps on waiting for the app as
  firefoxApp.isRunning reports false even though the "firefox" launches
  fine.  This code is similar to what is suggested in another question:
  https://answers.launchpad.net/sikuli/+question/274127.

  If I change my code to following:
  <code>
  firefoxApp = App("firefox")
  firefox = App.open("firefox")
  while not firefox.isRunning():
      print "Waiting for firefox.isRunning", firefox.isRunning()
      wait(1)

  firefoxApp.focus()
  ...
  ...
  firefoxApp.close()
  </code>

  it complains with message:

  [error] script [ /home/divick/work/server/tests.sikuli ] stopped with error in line 7
  [error] AttributeError ( 'NoneType' object has no attribute '__exit__' )

  
  I have tried all sort of combinations but it has issues one way or another. The code and documentation doesn't seem to match. I would appreciate any help.

  Thanks,
  Divick

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1567782/+subscriptions