PHP Class Nearsoft\SeleniumClient\Options

Afficher le fichier Open project: nearsoft/php-selenium-client

Méthodes publiques

Méthode 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 méthode

public __construct ( WebDriver $driver )
$driver WebDriver

addCookie() public méthode

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 méthode

Removes all current cookies
public deleteAllCookies ( )

deleteCookie() public méthode

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

deleteCookieNamed() public méthode

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

getCookieNamed() public méthode

Gets a cookie by name
public getCookieNamed ( $cookieName ) : Array
Résultat Array

getCookies() public méthode

Gets current cookies
public getCookies ( ) : Array
Résultat Array

setWindow() public méthode

Sets Window
public setWindow ( $window )
$window

timeouts() public méthode

Gets Timeouts object
public timeouts ( ) : Nearsoft\SeleniumClient\Timeouts
Résultat Nearsoft\SeleniumClient\Timeouts

window() public méthode

Gets Window object
public window ( ) : Nearsoft\SeleniumClient\Window
Résultat Nearsoft\SeleniumClient\Window