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

Breadcrumb

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

function Session::frame

frame methods: /session/:sessionId/frame (POST)

  • $session->frame($json) - change focus to another frame on the page
  • $session->frame()->method() - chaining

Return value

\WebDriver\Session|\WebDriver\Frame

File

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

Class

Session
WebDriver\Session class

Namespace

WebDriver

Code

public function frame() {
    if (func_num_args() === 1) {
        $arg = func_get_arg(0);
        // json
        $this->curl('POST', '/frame', $arg);
        return $this;
    }
    // chaining
    return new Frame($this->url . '/frame');
}

API Navigation

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