← Back to team overview

sikuli-driver team mailing list archive

[Bug 1606644] Re: Mac OS 10.11.6 App.close(syspref) does not close application

 

#1606719 covers this

** Changed in: sikuli
       Status: New => Invalid

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

Title:
  Mac OS 10.11.6 App.close(syspref) does not close application

Status in Sikuli:
  Invalid

Bug description:
  Using sikulix 1.1.0 IDE on Mac OS 10.11.6, the following does not
  close the application. The application opens, but does not close.
  I've tried older methods to accomplish the same, but the class App method is newest.

  ====================================================
  program
  ====================================================
  import sys
  import subprocess
  import time
  import shutil
  setAutoWaitTimeout(5000)
  sysprefs = "/Applications/System Preferences.app"
  App.open(sysprefs)
  time.sleep(2)
  titlesyspref = "titlesyspref.png"
  if wait(titlesyspref,2):
      print("Systems Preferences is visable")
  else:
      print("Can't see the window")
      exit(1)
  App.close(sysprefs)
  time.sleep(2)
  if wait(titlesyspref,2):
      print("Systems Preferences is visable")
  else:
      print("Can't see the window")
      exit(1)
  exit(1)

  =====================================================
  log
  =====================================================
  [log] App.open [0:]

  Systems Preferences is visable
  Systems Preferences is visable
  [info] Exit code: 1

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


References