sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #59645
Re: [Question #663480]: How to create multiple app instances out of one app - chrome?
Question #663480 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/663480
Jackham posted a new comment:
Creating multiple distinct app instances from separate Chrome windows
using Sikuli is tricky because Chrome treats all windows as part of the
same application process. However, you can work around this by
identifying and controlling windows using titles or partial screen
regions.
Instead of creating new `App` instances, try this:
```python
from sikuli import *
# Focus on a specific window by title (make sure each window has a unique tab open)
App.focus("First Tab Title")
# perform actions here...
App.focus("Second Tab Title")
# perform actions here...
```
If window titles aren’t unique, another workaround is positioning each
window in a specific screen region and targeting regions directly.
Unfortunately, Sikuli's `App.getWindow()` isn't designed to
differentiate between windows in a multi-window single-process app like
Chrome, which is why you're seeing the error.
https://themagistvpc.com/
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.