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

Breadcrumb

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

function Session::focusWindow

Set focus to window: /session/:sessionId/window (POST)

Parameters

mixed $handle window handle (or legacy name) attribute:

Return value

\WebDriver\Session

File

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

Class

Session
WebDriver\Session class

Namespace

WebDriver

Code

public function focusWindow($handle) {
    $this->curl('POST', '/window', array(
        'handle' => $handle,
        'name' => $handle,
    ));
    return $this;
}

API Navigation

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