# TEST CASE 1 from time import ctime Settings.ActionLogs=0
print('start', time.ctime()) tc = ('translationCore') tC = App(tc) running = tC.isRunning() print('running', running, time.ctime()) App.focus(tc) print('focus', running, time.ctime()) SIKULIX 1.1.4 RESULTS WHEN APP IS ALREADY RUNNING (15 seconds to execute isRunning): ('start', 'Tue Dec 18 09:32:37 2018') ('running', True, 'Tue Dec 18 09:32:52 2018') ('focus', True, 'Tue Dec 18 09:32:52 2018') SIKULIX 1.1.3 RESULTS WHEN APP IS ALREADY RUNNING (6 seconds to execute isRunning): ('start', 'Tue Dec 18 09:37:52 2018') ('running', True, 'Tue Dec 18 09:37:58 2018') ('focus', True, 'Tue Dec 18 09:37:59 2018') # TEST CASE 2 from time import ctime Settings.ActionLogs=0 print('start', time.ctime()) myApp = App('Digital Color Meter') myApp.open() print('open',time.ctime()) running = myApp.isRunning() print('running', running, time.ctime()) myApp.focus() print('focus',time.ctime()) SIKULIX 1.1.4 RESULTS WHEN APP IS NOT RUNNING: ('start', 'Tue Dec 18 09:41:33 2018') [error] App.open: not found in taskList after 0 secs (Digital Color Meter) ('open', 'Tue Dec 18 09:41:34 2018') ('running', False, 'Tue Dec 18 09:41:36 2018') [error] App.focus failed: not running: [-1:Digital Color Meter (???)] Digital Color Meter ('focus', 'Tue Dec 18 09:41:37 2018') SIKULIX 1.1.3 RESULTS WHEN APP IS NOT RUNNING: ('start', 'Tue Dec 18 09:39:13 2018') ('open', 'Tue Dec 18 09:39:15 2018') ('running', True, 'Tue Dec 18 09:39:15 2018') ('focus', 'Tue Dec 18 09:39:17 2018') -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1808849 Title: Problems with isRunning() and App.focus() on Mac in 12-14 build Status in Sikuli: New Bug description: Running 1.1.4 12-14-2018 build on Mac OS Mojave 10.14.2 It appears that isRunning() is having a problem on my Mac. When the app being tested is not running, then the isRunning() command returns False in a couple of seconds. When the app being test is running, then the command hangs for about 16 seconds. It does eventually return True. I think this is also causing the App.focus() command to not actually set focus to the designated app. I did not have these problems in my scripts prior to upgrading to 1.1.4 To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1808849/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp