IWebDriverSwitchTo Method WebDriver
Instructs the driver to send future commands to a different frame or window.

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

ITargetLocator SwitchTo()

Return Value

Type: ITargetLocator
An ITargetLocator object which can be used to select a frame or window.
See Also

Reference