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

Breadcrumb

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

function Session::newWindow

New window: /session/:sessionId/window/new (POST)

  • $session->newWindow($type)

@internal "new" is a reserved keyword in PHP, so $session->window()->new() isn't possible

Return value

\WebDriver\Window

File

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

Class

Session
WebDriver\Session class

Namespace

WebDriver

Code

public function newWindow($type) {
    $arg = func_get_arg(0);
    // json
    $result = $this->curl('POST', '/window/new', $arg);
    return $result['value'];
}

API Navigation

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