public static interface WebDriver.Options
Modifier and Type | Method and Description |
---|---|
void |
addCookie(org.openqa.selenium.Cookie cookie)
Add a specific cookie.
|
void |
deleteAllCookies()
Delete all the cookies for the current domain.
|
void |
deleteCookie(org.openqa.selenium.Cookie cookie)
Delete a cookie from the browser's "cookie jar".
|
void |
deleteCookieNamed(java.lang.String name)
Delete the named cookie from the current domain.
|
org.openqa.selenium.Cookie |
getCookieNamed(java.lang.String name)
Get a cookie with a given name.
|
java.util.Set<org.openqa.selenium.Cookie> |
getCookies()
Get all the cookies for the current domain.
|
WebDriver.ImeHandler |
ime() |
org.openqa.selenium.logging.Logs |
logs()
Gets the
Logs interface used to fetch different types of logs. |
WebDriver.Timeouts |
timeouts() |
WebDriver.Window |
window() |
void addCookie(org.openqa.selenium.Cookie cookie)
cookie
- The cookie to add.void deleteCookieNamed(java.lang.String name)
name
- The name of the cookie to deletevoid deleteCookie(org.openqa.selenium.Cookie cookie)
cookie
- nom nom nomvoid deleteAllCookies()
java.util.Set<org.openqa.selenium.Cookie> getCookies()
org.openqa.selenium.Cookie getCookieNamed(java.lang.String name)
name
- the name of the cookieWebDriver.Timeouts timeouts()
WebDriver.ImeHandler ime()
WebDriver.Window window()
@Beta org.openqa.selenium.logging.Logs logs()
Logs
interface used to fetch different types of logs.
To set the logging preferences LoggingPreferences
.