Select a frame by its name or ID.
Namespace: OpenQA.SeleniumAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
IWebDriver Frame( string frameName )
Parameters
- frameName
- Type:
System String
The name of the frame to select.
Return Value
An IWebDriver instance focused on the specified frame.Exceptions
Exception | Condition |
---|---|
OpenQA.Selenium NoSuchFrameException | If the frame cannot be found. |
See Also