RemoteWebDriverSwitchTo Method WebDriver
Method to give you access to switch frames and windows

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

public ITargetLocator SwitchTo()

Return Value

Type: ITargetLocator
Returns an Object that allows you to Switch Frames and Windows

Implements

IWebDriverSwitchTo
Examples

IWebDriver driver = new InternetExplorerDriver();
driver.SwitchTo().Frame("FrameName");
See Also

Reference