WebDriverOptions
class WebDriverOptions (View source)
Managing stuff you would do in a browser.
Properties
protected ExecuteMethod | $executor |
Methods
Add a specific cookie.
Delete all the cookies that are currently visible.
Delete the cookie with the give name.
Get the cookie with a given name.
Get all the cookies for the current domain.
Return the interface for managing driver timeouts.
An abstraction allowing the driver to manipulate the browser's window
Get the log for a given log type. Log buffer is reset after each request.
Get available log types.
Details
__construct(ExecuteMethod $executor)
No description
WebDriverOptions
addCookie(array $cookie)
Add a specific cookie.
Here are the valid attributes of a cookie array. 'name' : string The name of the cookie; may not be null or an empty string. 'value' : string The cookie value; may not be null. 'path' : string OPTIONAL The path the cookie is visible to. Defaults to "/" if omitted. 'domain' : string OPTIONAL The domain the cookie is visible to. Defaults to the current browsing context's document's URL domain if omitted. 'secure' : bool OPTIONAL Whether this cookie requires a secure connection (https). Defaults to false if omitted. 'httpOnly': bool OPTIONAL Whether the cookie is an HTTP only cookie. Defaults to false if omitted. 'expiry' : int OPTIONAL The cookie's expiration date, specified in seconds since Unix Epoch.
WebDriverOptions
deleteAllCookies()
Delete all the cookies that are currently visible.
WebDriverOptions
deleteCookieNamed(string $name)
Delete the cookie with the give name.
array
getCookieNamed(string $name)
Get the cookie with a given name.
array
getCookies()
Get all the cookies for the current domain.
WebDriverTimeouts
timeouts()
Return the interface for managing driver timeouts.
WebDriverWindow
window()
An abstraction allowing the driver to manipulate the browser's window
array
getLog(string $log_type)
Get the log for a given log type. Log buffer is reset after each request.
array
getAvailableLogTypes()
Get available log types.