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

Breadcrumb

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

function Session::getWindowHandle

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

  • $session->getWindowHandle()

An alternative to $session->window()->getHandle()

Return value

mixed

File

vendor/lullabot/php-webdriver/lib/WebDriver/Session.php, line 266

Class

Session
WebDriver\Session class

Namespace

WebDriver

Code

public function getWindowHandle() {
    $result = $this->curl('GET', $this->w3c ? '/window' : '/window_handle');
    return $result['value'];
}

API Navigation

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