Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1.56 KB

File metadata and controls

19 lines (17 loc) · 1.56 KB

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

An OpenQA.Selenium.IWebDriver extension method that closes a window by the given window index.

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

Parameters

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

index System.Int32
Zero-based index of the window.

Returns

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