Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1.59 KB

File metadata and controls

19 lines (17 loc) · 1.59 KB

WebDriverExtensions.Close(OpenQA.Selenium.IWebDriver, string) 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, string windowName);

Parameters

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

windowName System.String
The name of the window to select.

Returns

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