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

Breadcrumb

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

function LegacyWindow::getHandle

Get window handle: /session/:sessionId/window_handle (GET)

  • $session->window($handle)->getHandle()
  • $session->window()->getHandle()

Return value

string

File

vendor/lullabot/php-webdriver/lib/WebDriver/LegacyWindow.php, line 75

Class

LegacyWindow
WebDriver\LegacyWindow class

Namespace

WebDriver

Code

public function getHandle() {
    if (!$this->windowHandle) {
        $result = $this->curl('GET', '_handle');
        $this->windowHandle = $result['value'];
    }
    return $this->windowHandle;
}
RSS feed
Powered by Drupal