sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #50090
[Bug 1811361] [NEW] app focus and close does not work
Public bug reported:
1.1.4-SNAPSHOT-2019-01-10_09:21/Windows10.0/Java8(64)1.8.0_191-b12
Windows 10 64bit
I used this script to open two portable chrome instances and then tried
to change the focus to them or close them with .focus() and .close()
method but nothing happens:
open_instances = {} # a dictionary to keep record of opened browsers
{name:app}
def browser(target, action = True ):
temp = r"C:\Users\Test\Desktop\Chromes\f" + str(target) + r"\f" + str(target) + r".exe"
if action: #for opening
open_instances["f"+str(target)] = App(temp)
open_instances["f"+str(target)].open(10)
else: # for closing
open_instances["f"+str(target)].close()
del open_instances["f"+str(target)]
wait(1)
def main():
for i in range(1,3): # trying to open the instances which works fine
browser(i)
wait(2)
for i in range(1,3): # trying to close same instances but it does not work. I even tried the .focus() but no success either
browser(i, False)
main()
** Affects: sikuli
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1811361
Title:
app focus and close does not work
Status in Sikuli:
New
Bug description:
1.1.4-SNAPSHOT-2019-01-10_09:21/Windows10.0/Java8(64)1.8.0_191-b12
Windows 10 64bit
I used this script to open two portable chrome instances and then
tried to change the focus to them or close them with .focus() and
.close() method but nothing happens:
open_instances = {} # a dictionary to keep record of opened browsers
{name:app}
def browser(target, action = True ):
temp = r"C:\Users\Test\Desktop\Chromes\f" + str(target) + r"\f" + str(target) + r".exe"
if action: #for opening
open_instances["f"+str(target)] = App(temp)
open_instances["f"+str(target)].open(10)
else: # for closing
open_instances["f"+str(target)].close()
del open_instances["f"+str(target)]
wait(1)
def main():
for i in range(1,3): # trying to open the instances which works fine
browser(i)
wait(2)
for i in range(1,3): # trying to close same instances but it does not work. I even tried the .focus() but no success either
browser(i, False)
main()
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1811361/+subscriptions
Follow ups
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close only work if app instance has an associated window
From: RaiMan, 2019-11-07
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close should work for more than one instance running of same some-name.exe
From: RaiMan, 2019-04-13
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close should work for more than one instance running of same some-name.exe
From: RaiMan, 2019-04-13
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close should work for more than one instance running of same some-name.exe
From: RaiMan, 2019-04-13
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close should work for more than one instance running of same some-name.exe
From: RaiMan, 2019-04-13
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close should work for more than one instance running of same some-name.exe
From: RaiMan, 2019-04-13
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close should work for more than one instance running of same some-name.exe
From: Seyed Mohammad Hossein Amirkhalili, 2019-04-13
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close should work for more than one instance running of same some-name.exe
From: RaiMan, 2019-01-16
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close does not work anymore (since 1st Jan '19)
From: Seyed Mohammad Hossein Amirkhalili, 2019-01-16
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close does not work anymore (since 1st Jan '19)
From: Seyed Mohammad Hossein Amirkhalili, 2019-01-15
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close does not work anymore (since 1st Jan '19)
From: RaiMan, 2019-01-15
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close does not work anymore (since 1st Jan '19)
From: Seyed Mohammad Hossein Amirkhalili, 2019-01-15
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close does not work anymore (since 1st Jan '19)
From: RaiMan, 2019-01-15
-
[Bug 1811361] Re: [1.1.4] Windows: app focus and close does not work anymore (since 1st Jan '19)
From: RaiMan, 2019-01-11