Class webdriver.WebDriver.Options
code »Provides methods for managing browser and driver state.
Constructor
webdriver.WebDriver.Options ( driver )
Parameters |
---|
|
Show:
Type Definitions
Instance Methods
code »addCookie ( name, value, opt_path, opt_domain, opt_isSecure, opt_expiry ) ⇒ !webdriver.promise.Promise.<void>
Schedules a command to add a cookie.
!webdriver.promise.Promise.<void>
Parameters |
---|
|
Returns |
|
code »deleteAllCookies ( ) ⇒ !webdriver.promise.Promise.<void>
Schedules a command to delete all cookies visible to the current page.
!webdriver.promise.Promise.<void>
Returns |
---|
|
code »deleteCookie ( name ) ⇒ !webdriver.promise.Promise.<void>
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.
!webdriver.promise.Promise.<void>
Parameters |
---|
|
Returns |
|
code »getCookie ( name ) ⇒ !webdriver.promise.Promise
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.
!webdriver.promise.Promise
Parameters |
---|
|
Returns |
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.
Returns |
---|
|
Returns |
---|
|
Returns |
---|
|
Returns |
---|
|