I am using automated testing with Nightwatch + Selenium + Chrome. And since I am testing a WebRTC app I am opening multiple windows and switching them from one to another in tests frequently. This is very annoying when developing, because windows just continuously popping up while tests are running on top of my active windows.

Is there any way (perhaps CLI switch) to open them behind all windows or something like that?

I also don't want to use headless chrome because I sometimes need to see what is happening in browser, open dev tools etc.

1 Answer 1


You may easily keep these windows out of sight by running your tests on another virtual desktop. You may switch desktops using the Task View button or by the hotkeys Win+Ctrl+Left/Right.

For Windows, you may consult these references:

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .