Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 1.57 KB

File metadata and controls

16 lines (15 loc) · 1.57 KB

WebDriverExtensions.GetCurrentHandle(OpenQA.Selenium.IWebDriver) Method

Gets the current windows handle, if not implemented or not possible,
returns OpenQA.Selenium.Remote.SessionId or new OpenQA.Selenium.Remote.SessionId if OpenQA.Selenium.Remote.IHasSessionId is not implemented.

public static string GetCurrentHandle(this OpenQA.Selenium.IWebDriver driver);

Parameters

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

Returns

System.String
Opaque handle to this window that uniquely identifies it within this driver instance.