2019-01-11 11:12:58 |
Seyed Mohammad Hossein Amirkhalili |
bug |
|
|
added bug |
2019-01-11 12:38:58 |
RaiMan |
summary |
app focus and close does not work |
[1.1.4] Windows: app focus and close does not work anymore (since 1st Jan '19) |
|
2019-01-11 12:39:07 |
RaiMan |
sikuli: status |
New |
Fix Committed |
|
2019-01-11 12:39:12 |
RaiMan |
sikuli: importance |
Undecided |
High |
|
2019-01-11 12:39:15 |
RaiMan |
sikuli: assignee |
|
RaiMan (raimund-hocke) |
|
2019-01-11 12:39:20 |
RaiMan |
sikuli: milestone |
|
1.1.4 |
|
2019-01-15 12:44:21 |
RaiMan |
sikuli: status |
Fix Committed |
Opinion |
|
2019-01-15 12:44:26 |
RaiMan |
sikuli: importance |
High |
Medium |
|
2019-01-16 07:18:34 |
RaiMan |
summary |
[1.1.4] Windows: app focus and close does not work anymore (since 1st Jan '19) |
[1.1.4] Windows: app focus and close should work for more than one instance running of same some-name.exe |
|
2019-01-16 07:18:42 |
RaiMan |
sikuli: status |
Opinion |
In Progress |
|
2019-01-16 07:20:43 |
RaiMan |
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() |
-------------- problem
currently SikuliX only finds first in the row (based on tasklist)
fix will only be available towards end of February '19
--------------------------------------------------------------------
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() |
|
2019-04-13 15:25:26 |
RaiMan |
description |
-------------- problem
currently SikuliX only finds first in the row (based on tasklist)
fix will only be available towards end of February '19
--------------------------------------------------------------------
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() |
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() |
|
2019-04-13 15:28:05 |
RaiMan |
sikuli: status |
In Progress |
Confirmed |
|
2019-04-13 15:28:20 |
RaiMan |
sikuli: importance |
Medium |
Undecided |
|
2019-04-13 15:28:28 |
RaiMan |
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() |
---------------------- problem and workaround
someApp.focus() and someApp.close() will only work, if the app object created with App("some.exe").open() will have a window associated after startup.
-------------------- workaround
In complex cases like portable Chrome, there is no associated window with the main process and hence it is only possible to focus the app with a part of the window title, which in turn allows to get the app object with the window-owning process, that in turn is focusable and closeable.
------------------------------------------------------------
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() |
|
2019-04-13 15:29:49 |
RaiMan |
summary |
[1.1.4] Windows: app focus and close should work for more than one instance running of same some-name.exe |
[1.1.4] Windows: app focus and close only work if app instance has an associated window |
|
2019-11-07 16:18:20 |
RaiMan |
sikuli: status |
Confirmed |
In Progress |
|
2019-11-07 16:18:22 |
RaiMan |
sikuli: importance |
Undecided |
Medium |
|
2019-11-07 16:18:25 |
RaiMan |
sikuli: milestone |
1.1.4 |
2.1.0 |
|