Comment 12 for bug 1811361

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.1.4] Windows: app focus and close should work for more than one instance running of same some-name.exe

ok, the case is clear now.

Chrome is not a compound app, but a bunch of subprocesses.

With normal Chrome, the started exe will be the application pid and have the browser window.

With portable Chrome, the started exe will not have the window, but one of the subprocesses named chrome.exe.

To evaluate such complex constructs is far beyond the scope of SikuliX.

Conclusion: someApp.focus() will only work, if the app object created with App("some.exe").open() will have a window associated after startup.

In such cases as yours, there is no associated window 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.