Provides a mechanism by which the window handle of an invoked
popup browser window may be determined.
Inheritance Hierarchy

OpenQA.Selenium.Support.UI PopupWindowFinder
Namespace: OpenQA.Selenium.Support.UI
Assembly: WebDriver.Support (in WebDriver.Support.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Examples
// Store the current window handle so you can switch back to the // original window when you close the popup. string current = driver.CurrentWindowHandle; PopupWindowFinder finder = new PopupWindowFinder(driver); string newHandle = finder.Click(driver.FindElement(By.LinkText("Open new window"))); driver.SwitchTo.Window(newHandle);
See Also