Provides methods for managing browser and driver state.
The parent driver.
Schedules a command to add a cookie.
The cookie name.
The cookie value.
The cookie path.
The cookie domain.
Whether the cookie is secure.
When the cookie expires. If specified as a number, should be in milliseconds since midnight, January 1, 1970 UTC.
A promise that will be resolved when the cookie has been added to the page.
Schedules a command to delete all cookies visible to the current page.
A promise that will be resolved when all cookies have been deleted.
Schedules a command to delete the cookie with the given name. This command is a no-op if there is no cookie with the given name visible to the current page.
The name of the cookie to delete.
A promise that will be resolved when the cookie has been deleted.
Schedules a command to retrieve the cookie with the given name. Returns null if there is no such cookie. The cookie will be returned as a JSON object as described by the WebDriver wire protocol.
The name of the cookie to retrieve.
A promise that will be resolved with the named cookie, or {@code null} if there is no such cookie.
Schedules a command to retrieve all cookies visible to the current page. Each cookie will be returned as a JSON object as described by the WebDriver wire protocol.
A promise that will be resolved with the cookies visible to the current page.
The interface for managing driver logs.
The interface for managing driver timeouts.
The interface for managing the current window.