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

Breadcrumb

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

function Session::log

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

  • $session->log($type) - get log for given log type
  • $session->log()->method() - chaining

Return value

mixed

File

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

Class

Session
WebDriver\Session class

Namespace

WebDriver

Code

public function log() {
    // get log for given log type
    if (func_num_args() === 1) {
        $arg = func_get_arg(0);
        if (is_string($arg)) {
            $arg = array(
                'type' => $arg,
            );
        }
        $result = $this->curl('POST', '/log', $arg);
        return $result['value'];
    }
    // chaining
    return new Log($this->url . '/log');
}

API Navigation

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