RemoteTargetLocator
class RemoteTargetLocator implements WebDriverTargetLocator (View source)
Used to locate a given frame or window for RemoteWebDriver.
Properties
protected ExecuteMethod | $executor | ||
protected WebDriver | $driver | ||
protected bool | $isW3cCompliant |
Methods
No description
Set the current browsing context to the current top-level browsing context.
Switch to the currently active modal dialog for this particular driver instance.
Switches to the element that currently has focus within the document currently "switched to", or the body element if this cannot be detected.
Details
__construct($executor, $driver, $isW3cCompliant = false)
No description
WebDriver
defaultContent()
Set the current browsing context to the current top-level browsing context.
This is the same as calling RemoteTargetLocator::frame(null);
WebDriver
frame(WebDriverElement|string $frame)
Switch to the iframe by its id or name.
WebDriver
parent()
Switch to the parent iframe.
WebDriver
window(string $handle)
Switch the focus to another window by its handle.
WebDriverAlert
alert()
Switch to the currently active modal dialog for this particular driver instance.
WebDriverElement
activeElement()
Switches to the element that currently has focus within the document currently "switched to", or the body element if this cannot be detected.