IWebDriver CurrentWindowHandle Property WebDriver
Gets the current window handle, which is an opaque handle to this window that uniquely identifies it within this driver instance.

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

string CurrentWindowHandle { get; }
See Also