WebDriver\Session::log PHP Метод

log() публичный Метод

log methods: /session/:sessionId/log (POST) - $session->log($type) - get log for given log type - $session->log()->method() - chaining
public log ( ) : mixed
Результат mixed
    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');
    }