메소드 |
설명 |
|
activeElement ( ) : mixed |
Get active element (i.e., has focus): /session/:sessionId/element/active (POST)
- $session->activeElement() |
|
application_cache ( ) : WebDriver\ApplicationCache |
application cache chaining, e.g.,
- $session->application_cache()->status() |
|
capabilities ( ) : mixed |
Get browser capabilities: /session/:sessionId (GET) |
|
close ( ) : mixed |
Close session: /session/:sessionId (DELETE) |
|
deleteAllCookies ( ) : Session |
Delete all cookies: /session/:sessionId/cookie (DELETE) |
|
deleteCookie ( string $cookieName ) : Session |
Delete a cookie: /session/:sessionId/cookie/:name (DELETE) |
|
deleteWindow ( ) : Session |
Delete window: /session/:sessionId/window (DELETE) |
|
focusWindow ( mixed $name ) : Session |
Set focus to window: /session/:sessionId/window (POST) |
|
frame ( ) : Session | WebDriver\Frame |
frame methods: /session/:sessionId/frame (POST)
- $session->frame($json) - change focus to another frame on the page
- $session->frame()->method() - chaining |
|
getAllCookies ( ) : mixed |
Get all cookies: /session/:sessionId/cookie (GET)
Alternative to: $session->cookie(); |
|
ime ( ) : WebDriver\Ime |
ime method chaining, e.g.,
- $session->ime()->method() |
|
local_storage ( ) : WebDriver\Storage |
local_storage method chaining, e.g.,
- $session->local_storage()->method() |
|
log ( ) : mixed |
log methods: /session/:sessionId/log (POST)
- $session->log($type) - get log for given log type
- $session->log()->method() - chaining |
|
open ( string $url ) : Session |
Open URL: /session/:sessionId/url (POST)
An alternative to $session->url($url); |
|
session_storage ( ) : WebDriver\Storage |
session_storage method chaining, e.g.,
- $session->session_storage()->method() |
|
setCookie ( array $cookieJson ) : Session |
Set cookie: /session/:sessionId/cookie (POST)
Alternative to: $session->cookie($cookie_json); |
|
timeouts ( ) : Session | WebDriver\Timeouts |
timeouts methods: /session/:sessionId/timeouts (POST)
- $session->timeouts($json) - set timeout for an operation
- $session->timeouts()->method() - chaining |
|
touch ( ) : WebDriver\Touch |
touch method chaining, e.g.,
- $session->touch()->method() |
|
window ( ) : WebDriver\Window | Session |
window methods: /session/:sessionId/window (POST, DELETE)
- $session->window() - close current window
- $session->window($name) - set focus
- $session->window($window_handle)->method() - chaining |
|