Swopping between windows

Asked by PJeff Vallis on 2018-03-13


I wish to load 2 browsers
and swop between the 2 - both of which are fullscreen
Can anyone give me an example of code to use rather than confuse the issue with the code that I have tried

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

What did you try?

tried App.focus()?

Jeff_Vallis (vallis-pj) said : #2

What I want to do is
Open first browser and login
Open second browser and login as different user
Get Focus on first browser - do something
Get Focus on second browser - do something
get focus on first browser and close it

I am guessing that having opened first browser that its name for focus is not the browser name but the name of the tab and to get focus then I need to use its tab name - trouble is both browsers have the same tab name
Now that is just a guess so I was recluctant to paste my crap code

so yes I tried app focus and have since been wasting time tryig to find a way of renaming the tab through a terminal command

RaiMan (raimund-hocke) said : #3

Other options are:
- arrange the windows so that clicking at an inactive area brings the window to front
- use a keyboard shortcut to select the other window

RaiMan (raimund-hocke) said : #4

... and you might try using the wmctrl command yourself (subprocess.Popen)

Can you help with this problem?

Provide an answer of your own, or ask PJeff Vallis for more information if necessary.

To post a message you must log in.