Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1.48 KB

File metadata and controls

19 lines (17 loc) · 1.48 KB

WebDriverExtensions.SwitchToWindow(OpenQA.Selenium.IWebDriver, int) Method

Switches the focus of future commands for this driver to the window with the given index.

public static OpenQA.Selenium.IWebDriver SwitchToWindow(this OpenQA.Selenium.IWebDriver driver, int index);

Parameters

driver OpenQA.Selenium.IWebDriver
This OpenQA.Selenium.IWebDriver instance.

index System.Int32
The window index.

Returns

OpenQA.Selenium.IWebDriver
A self-reference to this OpenQA.Selenium.IWebDriver.