title: Popup's in selenium webdrivers
body: <p>So I'm working with selenium firefox webdrivers in c# winform and I have this code below to get the handle of the popup that shows when you click on the "webtraffic_popup_start_button" and it should get the handle of the popup but the popup handle is same as current one.</p>
  
  <pre><code>string current = driver.CurrentWindowHandle;
  driver.FindElement(By.XPath("//*[@id='webtraffic_popup_start_button']")).Click();
  Thread.Sleep(Sleep_Seconds);
  popup = driver.CurrentWindowHandle;
  Thread.Sleep(3000);
  driver.SwitchTo().Window(current);
  Thread.Sleep(1000);
  </code></pre>
  
  <p>Any help with this would be much appreciated thank you</p>
  
  <p>This is what pop up looks like.</p>
  
  <p><a href="https://i.stack.imgur.com/TPoaz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TPoaz.png" alt="Popup_Image"></a></p>