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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a specific cookie.voidDelete all the cookies for the current domain.voiddeleteCookie(Cookie cookie) Delete a cookie from the browser's "cookie jar".voiddeleteCookieNamed(String name) Delete the named cookie from the current domain.getCookieNamed(String name) Get a cookie with a given name.Get all the cookies for the current domain.logs()Gets theLogsinterface used to fetch different types of logs.timeouts()window()
-
Constructor Details
-
RemoteWebDriverOptions
protected RemoteWebDriverOptions()
-
-
Method Details
-
logs
Description copied from interface:WebDriver.OptionsGets theLogsinterface used to fetch different types of logs.To set the logging preferences
LoggingPreferences.- Specified by:
logsin interfaceWebDriver.Options- Returns:
- A Logs interface.
-
addCookie
Description copied from interface:WebDriver.OptionsAdd 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:
addCookiein interfaceWebDriver.Options- Parameters:
cookie- The cookie to add.
-
deleteCookieNamed
Description copied from interface:WebDriver.OptionsDelete 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:
deleteCookieNamedin interfaceWebDriver.Options- Parameters:
name- The name of the cookie to delete
-
deleteCookie
Description copied from interface:WebDriver.OptionsDelete a cookie from the browser's "cookie jar". The domain of the cookie will be ignored.- Specified by:
deleteCookiein interfaceWebDriver.Options- Parameters:
cookie- nom nom nom
-
deleteAllCookies
public void deleteAllCookies()Description copied from interface:WebDriver.OptionsDelete all the cookies for the current domain.See W3C WebDriver specification for more details.
- Specified by:
deleteAllCookiesin interfaceWebDriver.Options
-
getCookies
Description copied from interface:WebDriver.OptionsGet all the cookies for the current domain.See W3C WebDriver specification for more details.
- Specified by:
getCookiesin interfaceWebDriver.Options- Returns:
- A Set of cookies for the current domain.
-
getCookieNamed
Description copied from interface:WebDriver.OptionsGet a cookie with a given name.See W3C WebDriver specification for more details.
- Specified by:
getCookieNamedin interfaceWebDriver.Options- Parameters:
name- the name of the cookie- Returns:
- the cookie, or null if no cookie with the given name is present
-
timeouts
- Specified by:
timeoutsin interfaceWebDriver.Options- Returns:
- the interface for managing driver timeouts.
-
window
- Specified by:
windowin interfaceWebDriver.Options- Returns:
- the interface for managing the current window.
-