Package org.openqa.selenium.htmlunit
Class HtmlUnitDriver.HtmlUnitWebDriverOptions
java.lang.Object
org.openqa.selenium.htmlunit.HtmlUnitDriver.HtmlUnitWebDriverOptions
- All Implemented Interfaces:
org.openqa.selenium.WebDriver.Options
- Enclosing class:
- HtmlUnitDriver
protected class HtmlUnitDriver.HtmlUnitWebDriverOptions
extends Object
implements org.openqa.selenium.WebDriver.Options
Implementation of
WebDriver.Options for HtmlUnitDriver.
This inner class provides driver-scoped configuration objects such as
logging support (HtmlUnitLogs) and timeout management
(HtmlUnitTimeouts).
Instances are typically created by the enclosing HtmlUnitDriver
and exposed via driver.manage().
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a newHtmlUnitWebDriverOptionsbound to the given driver. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCookie(org.openqa.selenium.Cookie cookie) voidvoiddeleteCookie(org.openqa.selenium.Cookie cookie) voiddeleteCookieNamed(String name) org.openqa.selenium.CookiegetCookieNamed(String name) Set<org.openqa.selenium.Cookie>org.openqa.selenium.logging.Logslogs()org.openqa.selenium.WebDriver.Timeoutstimeouts()window()
-
Constructor Details
-
HtmlUnitWebDriverOptions
Creates a newHtmlUnitWebDriverOptionsbound to the given driver.- Parameters:
driver- the owningHtmlUnitDriver; must not benull
-
-
Method Details
-
logs
public org.openqa.selenium.logging.Logs logs()- Specified by:
logsin interfaceorg.openqa.selenium.WebDriver.Options
-
addCookie
public void addCookie(org.openqa.selenium.Cookie cookie) - Specified by:
addCookiein interfaceorg.openqa.selenium.WebDriver.Options
-
getCookieNamed
- Specified by:
getCookieNamedin interfaceorg.openqa.selenium.WebDriver.Options
-
deleteCookieNamed
- Specified by:
deleteCookieNamedin interfaceorg.openqa.selenium.WebDriver.Options
-
deleteCookie
public void deleteCookie(org.openqa.selenium.Cookie cookie) - Specified by:
deleteCookiein interfaceorg.openqa.selenium.WebDriver.Options
-
deleteAllCookies
public void deleteAllCookies()- Specified by:
deleteAllCookiesin interfaceorg.openqa.selenium.WebDriver.Options
-
getCookies
- Specified by:
getCookiesin interfaceorg.openqa.selenium.WebDriver.Options
-
timeouts
public org.openqa.selenium.WebDriver.Timeouts timeouts()- Specified by:
timeoutsin interfaceorg.openqa.selenium.WebDriver.Options
-
window
- Specified by:
windowin interfaceorg.openqa.selenium.WebDriver.Options
-