Selenium ChromeDriver issue - Want to run it in background, but not as headless browser

0 votes
I am looking for a way to run selenium tests in the background with ChromeDriver. With the background I mean as in, not the foreground focussed window. I can actually do this, but as soon as actions like opening a new tab or switching between windows (so basically switching window handles) happen in ChromeDriver, the browser window gets pushed to the foreground.

So my question is, how can I prevent this from happening without running the test headless?

Any suggestions are appreciated, open for discussion
Mar 26, 2018 in Selenium by nitinrawat895
• 10,490 points
859 views

1 answer to this question.

0 votes
This is a flaw with ChromeDriver. Tried doing the same with Firefox, and it worked for me. If you still want to use ChromeDriver, use a VM or a remote computer and attach to the process remotely to do the debugging if needed.
answered Mar 26, 2018 by nsv999
• 5,050 points

Related Questions In Selenium

0 votes
0 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,050 points
413 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
772 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
408 views
0 votes
1 answer

Can anyone help me that how to run Selenium WebDriver test cases in Chrome?

Download the executable driver from: ChromeDriver Download Before ...READ MORE

answered Mar 29, 2018 in Selenium by nsv999
• 5,050 points
205 views
0 votes
1 answer

Headless ChromeDriver using Python Selenium error: Fails To Start— “DevTools request failed”

This should be because your ChromeDriver is ...READ MORE

answered Mar 29, 2018 in Selenium by nsv999
• 5,050 points
326 views