Package org.openqa.selenium
Interface WebDriver.Options
-
- Enclosing interface:
- WebDriver
public static interface WebDriver.OptionsAn interface for managing stuff you would do in a browser menu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCookie(Cookie cookie)Add a specific cookie.voiddeleteAllCookies()Delete all the cookies for the current domain.voiddeleteCookie(Cookie cookie)Delete a cookie from the browser's "cookie jar".voiddeleteCookieNamed(java.lang.String name)Delete the named cookie from the current domain.CookiegetCookieNamed(java.lang.String name)Get a cookie with a given name.java.util.Set<Cookie>getCookies()Get all the cookies for the current domain.WebDriver.ImeHandlerime()Logslogs()Gets theLogsinterface used to fetch different types of logs.WebDriver.Timeoutstimeouts()WebDriver.Windowwindow()
-
-
-
Method Detail
-
addCookie
void addCookie(Cookie cookie)
Add a specific cookie. If the cookie's domain name is left blank, it is assumed that the cookie is meant for the domain of the current document.See W3C WebDriver specification for more details.
- Parameters:
cookie- The cookie to add.
-
deleteCookieNamed
void deleteCookieNamed(java.lang.String name)
Delete the named cookie from the current domain. This is equivalent to setting the named cookie's expiry date to some time in the past.See W3C WebDriver specification for more details.
- Parameters:
name- The name of the cookie to delete
-
deleteCookie
void deleteCookie(Cookie cookie)
Delete a cookie from the browser's "cookie jar". The domain of the cookie will be ignored.- Parameters:
cookie- nom nom nom
-
deleteAllCookies
void deleteAllCookies()
Delete all the cookies for the current domain.See W3C WebDriver specification for more details.
-
getCookies
java.util.Set<Cookie> getCookies()
Get all the cookies for the current domain.See W3C WebDriver specification for more details.
- Returns:
- A Set of cookies for the current domain.
-
getCookieNamed
Cookie getCookieNamed(java.lang.String name)
Get a cookie with a given name.See W3C WebDriver specification for more details.
- Parameters:
name- the name of the cookie- Returns:
- the cookie, or null if no cookie with the given name is present
-
timeouts
WebDriver.Timeouts timeouts()
- Returns:
- the interface for managing driver timeouts.
-
ime
WebDriver.ImeHandler ime()
- Returns:
- the interface for controlling IME engines to generate complex-script input.
-
window
WebDriver.Window window()
- Returns:
- the interface for managing the current window.
-
logs
@Beta Logs logs()
Gets theLogsinterface used to fetch different types of logs.To set the logging preferences
LoggingPreferences.- Returns:
- A Logs interface.
-
-