WebDriverOptions
class WebDriverOptions (View source)
Managing stuff you would do in a browser.
Properties
protected | $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 The path the cookie is visible to. If left blank or set to null, will be set to "/". 'domain': string The domain the cookie is visible to. It should be null or the same as the domain of the current URL. 'secure': bool Whether this cookie requires a secure connection(https?). It should be null or equal to the security of the current URL. 'expiry': int The cookie's expiration date; may be null.
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.