function Window::getHandle
Get window handle: /session/:sessionId/window (GET) : /session/:sessionId/window_handle (GET)
- $session->window($handle)->getHandle()
- $session->window()->getHandle()
Return value
string
File
-
vendor/
lullabot/ php-webdriver/ lib/ WebDriver/ Window.php, line 84
Class
- Window
- WebDriver\Window class
Namespace
WebDriverCode
public function getHandle() {
if (!$this->windowHandle) {
$result = $this->curl('GET', $this->url);
$this->windowHandle = array_key_exists(self::WEB_WINDOW_ID, $result['value']) ? $result['value'][self::WEB_WINDOW_ID] : $result['value'];
}
return $this->windowHandle;
}