WebDriverOptions
in package
Managing stuff you would do in a browser.
Table of Contents
Properties
- $executor : ExecuteMethod
- $isW3cCompliant : bool
Methods
- __construct() : mixed
- addCookie() : WebDriverOptions
- Add a specific cookie.
- deleteAllCookies() : WebDriverOptions
- Delete all the cookies that are currently visible.
- deleteCookieNamed() : WebDriverOptions
- Delete the cookie with the given name.
- getAvailableLogTypes() : array<string|int, mixed>
- Get available log types.
- getCookieNamed() : Cookie|null
- Get the cookie with a given name.
- getCookies() : array<string|int, Cookie>
- Get all the cookies for the current domain.
- getLog() : array<string|int, mixed>
- Get the log for a given log type. Log buffer is reset after each request.
- timeouts() : WebDriverTimeouts
- Return the interface for managing driver timeouts.
- window() : WebDriverWindow
- An abstraction allowing the driver to manipulate the browser's window
Properties
$executor
protected
ExecuteMethod
$executor
$isW3cCompliant
protected
bool
$isW3cCompliant
Methods
__construct()
public
__construct(ExecuteMethod $executor[, mixed $isW3cCompliant = false ]) : mixed
Parameters
- $executor : ExecuteMethod
- $isW3cCompliant : mixed = false
addCookie()
Add a specific cookie.
public
addCookie(Cookie|array<string|int, mixed> $cookie) : WebDriverOptions
Parameters
- $cookie : Cookie|array<string|int, mixed>
-
Cookie object. May be also created from array for compatibility reasons.
Tags
Return values
WebDriverOptions —The current instance.
deleteAllCookies()
Delete all the cookies that are currently visible.
public
deleteAllCookies() : WebDriverOptions
Return values
WebDriverOptions —The current instance.
deleteCookieNamed()
Delete the cookie with the given name.
public
deleteCookieNamed(string $name) : WebDriverOptions
Parameters
- $name : string
Return values
WebDriverOptions —The current instance.
getAvailableLogTypes()
Get available log types.
public
getAvailableLogTypes() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —The list of available log types.
getCookieNamed()
Get the cookie with a given name.
public
getCookieNamed(string $name) : Cookie|null
Parameters
- $name : string
Tags
Return values
Cookie|null —The cookie, or null in JsonWire mode if no cookie with the given name is present
getCookies()
Get all the cookies for the current domain.
public
getCookies() : array<string|int, Cookie>
Return values
array<string|int, Cookie> —The array of cookies presented.
getLog()
Get the log for a given log type. Log buffer is reset after each request.
public
getLog(string $log_type) : array<string|int, mixed>
Parameters
- $log_type : string
-
The log type.
Tags
Return values
array<string|int, mixed> —The list of log entries.
timeouts()
Return the interface for managing driver timeouts.
public
timeouts() : WebDriverTimeouts
Return values
WebDriverTimeoutswindow()
An abstraction allowing the driver to manipulate the browser's window
public
window() : WebDriverWindow