HumHub Documentation (unofficial)

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

Methods

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
see
Cookie

for description of possible cookie properties

Return values
WebDriverOptions —

The current instance.

getCookieNamed()

Get the cookie with a given name.

public getCookieNamed(string $name) : Cookie|null
Parameters
$name : string
Tags
throws
NoSuchCookieException

In W3C compliant mode if no cookie with the given name is present

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.


        
On this page

Search results