Cookies
info
Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .
iOS & Android users which desire to run tests on the mobile safari browser can choose to use the cookies API for their tests.
Those commands, include:
Operation | Java Example |
---|---|
add cookie | driver.manage().addCookie( new Cookie("name", "value") ) |
get all cookies | driver.manage().getCookies() |
get cookie by name | driver.manage().getCookieName("name") |
delete cookie by name | driver.manage().deleteCookieName("name") |
delete all cookies | driver.manage().deleteAllCookies() |