PHP 클래스 WebDriver\Session

상속: extends Container
파일 보기 프로젝트 열기: instaclick/php-webdriver 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
getElementPath ( $elementId )
methods ( )
obsoleteMethods ( )

메소드 상세

activeElement() 공개 메소드

Get active element (i.e., has focus): /session/:sessionId/element/active (POST) - $session->activeElement()
public activeElement ( ) : mixed
리턴 mixed

application_cache() 공개 메소드

application cache chaining, e.g., - $session->application_cache()->status()
public application_cache ( ) : WebDriver\ApplicationCache
리턴 WebDriver\ApplicationCache

capabilities() 공개 메소드

Get browser capabilities: /session/:sessionId (GET)
public capabilities ( ) : mixed
리턴 mixed

close() 공개 메소드

Close session: /session/:sessionId (DELETE)
public close ( ) : mixed
리턴 mixed

deleteAllCookies() 공개 메소드

Delete all cookies: /session/:sessionId/cookie (DELETE)
public deleteAllCookies ( ) : Session
리턴 Session

deleteCookie() 공개 메소드

Delete a cookie: /session/:sessionId/cookie/:name (DELETE)
public deleteCookie ( string $cookieName ) : Session
$cookieName string
리턴 Session

deleteWindow() 공개 메소드

Delete window: /session/:sessionId/window (DELETE)
public deleteWindow ( ) : Session
리턴 Session

focusWindow() 공개 메소드

Set focus to window: /session/:sessionId/window (POST)
public focusWindow ( mixed $name ) : Session
$name mixed window handler or name attribute
리턴 Session

frame() 공개 메소드

frame methods: /session/:sessionId/frame (POST) - $session->frame($json) - change focus to another frame on the page - $session->frame()->method() - chaining
public frame ( ) : Session | WebDriver\Frame
리턴 Session | WebDriver\Frame

getAllCookies() 공개 메소드

Note: get cookie by name not implemented in API
public getAllCookies ( ) : mixed
리턴 mixed

getElementPath() 보호된 메소드

protected getElementPath ( $elementId )

ime() 공개 메소드

ime method chaining, e.g., - $session->ime()->method()
public ime ( ) : WebDriver\Ime
리턴 WebDriver\Ime

local_storage() 공개 메소드

local_storage method chaining, e.g., - $session->local_storage()->method()
public local_storage ( ) : WebDriver\Storage
리턴 WebDriver\Storage

log() 공개 메소드

log methods: /session/:sessionId/log (POST) - $session->log($type) - get log for given log type - $session->log()->method() - chaining
public log ( ) : mixed
리턴 mixed

methods() 보호된 메소드

protected methods ( )

obsoleteMethods() 보호된 메소드

protected obsoleteMethods ( )

open() 공개 메소드

Open URL: /session/:sessionId/url (POST) An alternative to $session->url($url);
public open ( string $url ) : Session
$url string
리턴 Session

session_storage() 공개 메소드

session_storage method chaining, e.g., - $session->session_storage()->method()
public session_storage ( ) : WebDriver\Storage
리턴 WebDriver\Storage

setCookie() 공개 메소드

Set cookie: /session/:sessionId/cookie (POST) Alternative to: $session->cookie($cookie_json);
public setCookie ( array $cookieJson ) : Session
$cookieJson array
리턴 Session

timeouts() 공개 메소드

timeouts methods: /session/:sessionId/timeouts (POST) - $session->timeouts($json) - set timeout for an operation - $session->timeouts()->method() - chaining
public timeouts ( ) : Session | WebDriver\Timeouts
리턴 Session | WebDriver\Timeouts

touch() 공개 메소드

touch method chaining, e.g., - $session->touch()->method()
public touch ( ) : WebDriver\Touch
리턴 WebDriver\Touch

window() 공개 메소드

window methods: /session/:sessionId/window (POST, DELETE) - $session->window() - close current window - $session->window($name) - set focus - $session->window($window_handle)->method() - chaining
public window ( ) : WebDriver\Window | Session
리턴 WebDriver\Window | Session