Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Window.php

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

WebDriver

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal