Select a frame using its previously located IWebElement
Namespace: OpenQA.SeleniumAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
IWebDriver Frame( IWebElement frameElement )
Parameters
- frameElement
- Type: OpenQA.Selenium IWebElement
The frame element to switch to.
Return Value
An IWebDriver instance focused on the specified frame.Exceptions
Exception | Condition |
---|---|
OpenQA.Selenium NoSuchFrameException | If the element is neither a FRAME nor an IFRAME element. |
OpenQA.Selenium StaleElementReferenceException | If the element is no longer valid. |
See Also