HumHub Documentation (unofficial)

RemoteTargetLocator
in package
implements WebDriverTargetLocator

Used to locate a given frame or window for RemoteWebDriver.

Table of Contents

Interfaces

WebDriverTargetLocator
Used to locate a given frame or window.

Properties

$driver  : RemoteWebDriver
$executor  : RemoteExecuteMethod
$isW3cCompliant  : bool

Methods

__construct()  : mixed
activeElement()  : RemoteWebElement
Switches to the element that currently has focus within the document currently "switched to", or the body element if this cannot be detected.
alert()  : WebDriverAlert
Switch to the currently active modal dialog for this particular driver instance.
defaultContent()  : RemoteWebDriver
Set the current browsing context to the current top-level browsing context.
frame()  : RemoteWebDriver
Switch to the iframe by its id or name.
newWindow()  : RemoteWebDriver
Creates a new browser window and switches the focus for future commands of this driver to the new window.
parent()  : RemoteWebDriver
Switch to the parent iframe.
window()  : RemoteWebDriver
Switch the focus to another window by its handle.

Properties

Methods

frame()

Switch to the iframe by its id or name.

public frame(WebDriverElement|null|int|string $frame) : RemoteWebDriver
Parameters
$frame : WebDriverElement|null|int|string

The WebDriverElement, the id or the name of the frame. When null, switch to the current top-level browsing context When int, switch to the WindowProxy identified by the value. When an Element, switch to that Element.

Return values
RemoteWebDriver

newWindow()

Creates a new browser window and switches the focus for future commands of this driver to the new window.

public newWindow([string $windowType = self::WINDOW_TYPE_TAB ]) : RemoteWebDriver
Parameters
$windowType : string = self::WINDOW_TYPE_TAB

The type of a new browser window that should be created. One of [tab, window]. The created window is not guaranteed to be of the requested type; if the driver does not support the requested type, a new browser window will be created of whatever type the driver does support.

Tags
see
https://w3c.github.io/webdriver/#new-window
throws
LogicException
Return values
RemoteWebDriver

This driver focused on the given window

Loading…
On this page

Search results