Lines Matching defs:window
11 * Used to locate a given frame or window for RemoteWebDriver.
91 * @param string $handle The handle of the window to be focused on.
94 public function window($handle)
108 * Creates a new browser window and switches the focus for future commands of this driver to the new window.
110 * @see https://w3c.github.io/webdriver/#new-window
111 * @param string $windowType The type of a new browser window that should be created. One of [tab, window].
112 * The created window is not guaranteed to be of the requested type; if the driver does not support the requested
113 * type, a new browser window will be created of whatever type the driver does support.
115 * @return RemoteWebDriver This driver focused on the given window
120 throw new \InvalidArgumentException('Window type must by either "tab" or "window"');
124 throw new UnsupportedOperationException('New window is only supported in W3C mode');
129 $this->window($response['handle']);