title: Selenium C# Switching Focus between two Web Browsers
body: <p>I have created two IWebDriver objects. One for a FireFox browser and the other for a Chrome Browser. I am struggling to switch focus between the two browsers though. I have tried using the following:-</p>
  
  <pre><code>_webDriver2 = new ChromeDriver();
  string chromeHandle = _webDriver2.CurrentWindowHandle; 
  
  _webDriver = new FirefoxDriver();
  string fireFoxHandle = _webDriver.CurrentWindowHandle;
  
  _webDriver.SwitchTo().Window(fireFoxHandle); 
  _webDriver2.SwitchTo().Window(chromeHandle); 
  </code></pre>
  
  <p>But this doesnt seem to bring the web browsers into focus. Can anyone help please?</p>