Package org.openqa.selenium.remote
Class RemoteWebDriver.RemoteWebDriverOptions
- java.lang.Object
-
- org.openqa.selenium.remote.RemoteWebDriver.RemoteWebDriverOptions
-
- All Implemented Interfaces:
WebDriver.Options
- Enclosing class:
- RemoteWebDriver
protected class RemoteWebDriver.RemoteWebDriverOptions extends java.lang.Object implements WebDriver.Options
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
RemoteWebDriver.RemoteWebDriverOptions.RemoteTimeouts
protected class
RemoteWebDriver.RemoteWebDriverOptions.RemoteWindow
-
Constructor Summary
Constructors Modifier Constructor Description protected
RemoteWebDriverOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCookie(Cookie cookie)
Add a specific cookie.void
deleteAllCookies()
Delete all the cookies for the current domain.void
deleteCookie(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.Cookie
getCookieNamed(java.lang.String name)
Get a cookie with a given name.java.util.Set<Cookie>
getCookies()
Get all the cookies for the current domain.Logs
logs()
Gets theLogs
interface used to fetch different types of logs.WebDriver.Timeouts
timeouts()
WebDriver.Window
window()
-
-
-
Method Detail
-
logs
@Beta public Logs logs()
Description copied from interface:WebDriver.Options
Gets theLogs
interface used to fetch different types of logs.To set the logging preferences
LoggingPreferences
.- Specified by:
logs
in interfaceWebDriver.Options
- Returns:
- A Logs interface.
-
addCookie
public void addCookie(Cookie cookie)
Description copied from interface:WebDriver.Options
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.
- Specified by:
addCookie
in interfaceWebDriver.Options
- Parameters:
cookie
- The cookie to add.
-
deleteCookieNamed
public void deleteCookieNamed(java.lang.String name)
Description copied from interface:WebDriver.Options
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.
- Specified by:
deleteCookieNamed
in interfaceWebDriver.Options
- Parameters:
name
- The name of the cookie to delete
-
deleteCookie
public void deleteCookie(Cookie cookie)
Description copied from interface:WebDriver.Options
Delete a cookie from the browser's "cookie jar". The domain of the cookie will be ignored.- Specified by:
deleteCookie
in interfaceWebDriver.Options
- Parameters:
cookie
- nom nom nom
-
deleteAllCookies
public void deleteAllCookies()
Description copied from interface:WebDriver.Options
Delete all the cookies for the current domain.See W3C WebDriver specification for more details.
- Specified by:
deleteAllCookies
in interfaceWebDriver.Options
-
getCookies
public java.util.Set<Cookie> getCookies()
Description copied from interface:WebDriver.Options
Get all the cookies for the current domain.See W3C WebDriver specification for more details.
- Specified by:
getCookies
in interfaceWebDriver.Options
- Returns:
- A Set of cookies for the current domain.
-
getCookieNamed
public Cookie getCookieNamed(java.lang.String name)
Description copied from interface:WebDriver.Options
Get a cookie with a given name.See W3C WebDriver specification for more details.
- Specified by:
getCookieNamed
in interfaceWebDriver.Options
- Parameters:
name
- the name of the cookie- Returns:
- the cookie, or null if no cookie with the given name is present
-
timeouts
public WebDriver.Timeouts timeouts()
- Specified by:
timeouts
in interfaceWebDriver.Options
- Returns:
- the interface for managing driver timeouts.
-
window
@Beta public WebDriver.Window window()
- Specified by:
window
in interfaceWebDriver.Options
- Returns:
- the interface for managing the current window.
-
-