Click or drag to resize
Ranorex

WebDriverDocumentSwitchToFrame Method

Switches to an iFrame described by an XPath selector.

Namespace:  Ranorex
Assembly:  Ranorex.Plugin.WebDriver (in Ranorex.Plugin.WebDriver.dll) Version: 12.7.4-git.38314c06
Syntax
public virtual string SwitchToFrame(
	string Selector,
	string SelectorType
)

Parameters

Selector
Type: SystemString
The iFrame selector.
SelectorType
Type: SystemString
The type of the selector (Css, XPath, Name or Id).

Return Value

Type: String
'Success' if the frame is switched successfully.
Exceptions
ExceptionCondition
ActionFailedExceptionThrown if invoking the action failed.
See Also