← Back to team overview

sikuli-driver team mailing list archive

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

 

Public bug reported:

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

** Affects: sikuli
     Importance: Undecided
         Status: New

** Description changed:

  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 of the same, but the class App
+ 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"    
+ sysprefs = "/Applications/System Preferences.app"
  App.open(sysprefs)
  time.sleep(2)
  titlesyspref = "titlesyspref.png"
  if wait(titlesyspref,2):
-     print("Systems Preferences is visable")
+     print("Systems Preferences is visable")
  else:
-     print("Can't see the window")
-     exit(1)
+     print("Can't see the window")
+     exit(1)
  App.close(sysprefs)
  time.sleep(2)
  if wait(titlesyspref,2):
-     print("Systems Preferences is visable")
+     print("Systems Preferences is visable")
  else:
-     print("Can't see the window")
-     exit(1)
+     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

-- 
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:
  New

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


Follow ups