public class Cookie extends RunOnFailureKeywordsAdapter
| Modifier and Type | Field and Description |
|---|---|
protected BrowserManagement |
browserManagement
Instantiated BrowserManagement keyword bean
|
| Constructor and Description |
|---|
Cookie() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(String name,
String value) |
void |
addCookie(String name,
String value,
String path) |
void |
addCookie(String name,
String value,
String path,
String domain) |
void |
addCookie(String name,
String value,
String path,
String domain,
String secure) |
void |
addCookie(String name,
String value,
String path,
String domain,
String secure,
String expiry)
Adds a cookie to your current session.
|
void |
deleteAllCookies()
Deletes all cookies.
|
void |
deleteCookie(String name)
Deletes cookie matching name.
|
String |
getCookies()
Returns all cookies of the current page.
|
String |
getCookieValue(String name)
Returns value of cookie found with name.
|
runOnFailureByAspectJprotected BrowserManagement browserManagement
public void deleteAllCookies()
public void deleteCookie(String name)
name - The name of the cookie to delete.public String getCookies()
public String getCookieValue(String name)
name - The name of the cookiepublic void addCookie(String name, String value, String path, String domain, String secure)
public void addCookie(String name, String value, String path, String domain, String secure, String expiry)
name - The name of the cookie.value - The cookie value.path - Default=NONE. The path the cookie is visible to.domain - Default=NONE. The domain the cookie is visible to.secure - Default=NONE. Whether this cookie requires a secure
connection.expiry - Default=NONE. The cookie's expiration dateCopyright © 2014. All rights reserved.