Class 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 Detail

      • HtmlUnitWebDriverOptions

        protected HtmlUnitWebDriverOptions​(HtmlUnitDriver driver)
        Creates a new HtmlUnitWebDriverOptions bound to the given driver.
        Parameters:
        driver - the owning HtmlUnitDriver; must not be null
    • Method Detail

      • logs

        public org.openqa.selenium.logging.Logs logs()
        Specified by:
        logs in interface org.openqa.selenium.WebDriver.Options
      • addCookie

        public void addCookie​(org.openqa.selenium.Cookie cookie)
        Specified by:
        addCookie in interface org.openqa.selenium.WebDriver.Options
      • getCookieNamed

        public org.openqa.selenium.Cookie getCookieNamed​(String name)
        Specified by:
        getCookieNamed in interface org.openqa.selenium.WebDriver.Options
      • deleteCookieNamed

        public void deleteCookieNamed​(String name)
        Specified by:
        deleteCookieNamed in interface org.openqa.selenium.WebDriver.Options
      • deleteCookie

        public void deleteCookie​(org.openqa.selenium.Cookie cookie)
        Specified by:
        deleteCookie in interface org.openqa.selenium.WebDriver.Options
      • deleteAllCookies

        public void deleteAllCookies()
        Specified by:
        deleteAllCookies in interface org.openqa.selenium.WebDriver.Options
      • getCookies

        public Set<org.openqa.selenium.Cookie> getCookies()
        Specified by:
        getCookies in interface org.openqa.selenium.WebDriver.Options
      • timeouts

        public org.openqa.selenium.WebDriver.Timeouts timeouts()
        Specified by:
        timeouts in interface org.openqa.selenium.WebDriver.Options
      • window

        public HtmlUnitWindow window()
        Specified by:
        window in interface org.openqa.selenium.WebDriver.Options