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
WebDriverCode
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');
}