title: Switch to window (tab) without bringing browser to front
body: <p>I am using Python and Selenium to navigate multiple tabs. How can I switch to a different window/tab without bringing the entire browser window to the front and without the selenium window &quot;stealing&quot; the focus of my computer? For example, if I'm typing in the search bar of a normal browser and my script switches tabs, it'll stop typing the search bar and I'll have to reclick the search bar to start typing again.</p>
  <ul>
  <li>No headless mode suggestions please.</li>
  <li>Changing the browser location off the screen doesn't work because it still steals focus</li>
  <li>Minimizing the browser doesn't work because it unminimizes when the switch to command is run</li>
  </ul>
  <p>Here is how I'm switching windows:</p>
  <pre><code>for handle in driver.window_handles:
      driver.switch_to.window(handle)
  </code></pre>