Select a frame by its (zero-based) index.
Namespace: OpenQA.SeleniumAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
IWebDriver Frame( int frameIndex )
Parameters
- frameIndex
- Type:
System Int32
The zero-based index 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