Switches the focus of future commands for this driver to the window with the given name.
Namespace: OpenQA.SeleniumAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
IWebDriver Window( string windowName )
Parameters
- windowName
- Type:
System String
The name of the window to select.
Return Value
An IWebDriver instance focused on the given window.Exceptions
Exception | Condition |
---|---|
OpenQA.Selenium NoSuchWindowException | If the window cannot be found. |
See Also