PHP Class Nearsoft\SeleniumClient\Options

ファイルを表示 Open project: nearsoft/php-selenium-client

Public Methods

Method Description
__construct ( WebDriver $driver )
addCookie ( String $name, String $value, String $path = null, String $domain = null, boolean $secure = null, integer $expiry = null ) Sets cookie
deleteAllCookies ( ) Removes all current cookies
deleteCookie ( Cookie $cookie ) Remove a cookie
deleteCookieNamed ( String $cookieName ) Remove a cookie
getCookieNamed ( $cookieName ) : Array Gets a cookie by name
getCookies ( ) : Array Gets current cookies
setWindow ( $window ) Sets Window
timeouts ( ) : Nearsoft\SeleniumClient\Timeouts Gets Timeouts object
window ( ) : Nearsoft\SeleniumClient\Window Gets Window object

Method Details

__construct() public method

public __construct ( WebDriver $driver )
$driver WebDriver

addCookie() public method

Sets cookie
public addCookie ( String $name, String $value, String $path = null, String $domain = null, boolean $secure = null, integer $expiry = null )
$name String
$value String
$path String
$domain String
$secure boolean
$expiry integer

deleteAllCookies() public method

Removes all current cookies
public deleteAllCookies ( )

deleteCookie() public method

Remove a cookie
public deleteCookie ( Cookie $cookie )
$cookie Cookie

deleteCookieNamed() public method

Remove a cookie
public deleteCookieNamed ( String $cookieName )
$cookieName String

getCookieNamed() public method

Gets a cookie by name
public getCookieNamed ( $cookieName ) : Array
return Array

getCookies() public method

Gets current cookies
public getCookies ( ) : Array
return Array

setWindow() public method

Sets Window
public setWindow ( $window )
$window

timeouts() public method

Gets Timeouts object
public timeouts ( ) : Nearsoft\SeleniumClient\Timeouts
return Nearsoft\SeleniumClient\Timeouts

window() public method

Gets Window object
public window ( ) : Nearsoft\SeleniumClient\Window
return Nearsoft\SeleniumClient\Window