Class BaseUrlWebConnectionHtmlUnitDriver

java.lang.Object
org.openqa.selenium.htmlunit.HtmlUnitDriver
org.springframework.test.web.servlet.htmlunit.webdriver.WebConnectionHtmlUnitDriver
org.springframework.boot.test.web.htmlunit.BaseUrlWebConnectionHtmlUnitDriver
All Implemented Interfaces:
org.openqa.selenium.HasCapabilities, org.openqa.selenium.interactions.Interactive, org.openqa.selenium.JavascriptExecutor, org.openqa.selenium.SearchContext, org.openqa.selenium.WebDriver

public class BaseUrlWebConnectionHtmlUnitDriver extends WebConnectionHtmlUnitDriver
HTML Unit WebConnectionHtmlUnitDriver that will automatically prefix relative URLs with a provided BaseUrl.
Since:
4.0.0
Author:
Phillip Webb
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.openqa.selenium.htmlunit.HtmlUnitDriver

    org.openqa.selenium.htmlunit.HtmlUnitDriver.ElementsMap, org.openqa.selenium.htmlunit.HtmlUnitDriver.HtmlUnitWebDriverOptions, org.openqa.selenium.htmlunit.HtmlUnitDriver.JavaScriptResultsCollection

    Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver

    org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
  • Field Summary

    Fields inherited from class org.openqa.selenium.htmlunit.HtmlUnitDriver

    BROWSER_LANGUAGE_CAPABILITY, DOWNLOAD_IMAGES_CAPABILITY, JAVASCRIPT_ENABLED
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    BaseUrlWebConnectionHtmlUnitDriver(@Nullable BaseUrl baseUrl, boolean enableJavascript)
     
    BaseUrlWebConnectionHtmlUnitDriver(@Nullable BaseUrl baseUrl, org.htmlunit.BrowserVersion browserVersion)
     
    BaseUrlWebConnectionHtmlUnitDriver(@Nullable BaseUrl baseUrl, org.openqa.selenium.Capabilities capabilities)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    get(String url)
     

    Methods inherited from class org.springframework.test.web.servlet.htmlunit.webdriver.WebConnectionHtmlUnitDriver

    getWebClient, getWebConnection, modifyWebClient, modifyWebClientInternal, setWebConnection

    Methods inherited from class org.openqa.selenium.htmlunit.HtmlUnitDriver

    assertElementNotStale, click, close, doubleClick, executeAsyncScript, executeScript, findElement, findElement, findElements, findElements, get, getAlert, getBrowserVersion, getCapabilities, getCurrentUrl, getCurrentWindow, getElementsMap, getKeyboard, getMouse, getPageSource, getTitle, getWindowHandle, getWindowHandles, implicitlyWaitFor, isAcceptInsecureCerts, isDownloadImages, isJavascriptEnabled, manage, mouseDown, mouseMove, mouseUp, navigate, newWebClient, openNewWindow, perform, quit, resetInputState, runAsync, sendKeys, setAcceptInsecureCerts, setAutoProxy, setCurrentWindow, setDownloadImages, setExecutor, setHTTPProxy, setJavascriptEnabled, setProxy, setProxySettings, setSocksProxy, setSocksProxy, submit, switchTo, switchToDefaultContentOfWindow, toWebElement, toWebElement

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.openqa.selenium.JavascriptExecutor

    executeScript, getPinnedScripts, pin, unpin
  • Constructor Details

    • BaseUrlWebConnectionHtmlUnitDriver

      public BaseUrlWebConnectionHtmlUnitDriver(@Nullable BaseUrl baseUrl)
    • BaseUrlWebConnectionHtmlUnitDriver

      public BaseUrlWebConnectionHtmlUnitDriver(@Nullable BaseUrl baseUrl, boolean enableJavascript)
    • BaseUrlWebConnectionHtmlUnitDriver

      public BaseUrlWebConnectionHtmlUnitDriver(@Nullable BaseUrl baseUrl, org.htmlunit.BrowserVersion browserVersion)
    • BaseUrlWebConnectionHtmlUnitDriver

      public BaseUrlWebConnectionHtmlUnitDriver(@Nullable BaseUrl baseUrl, org.openqa.selenium.Capabilities capabilities)
  • Method Details

    • get

      public void get(String url)
      Specified by:
      get in interface org.openqa.selenium.WebDriver
      Overrides:
      get in class org.openqa.selenium.htmlunit.HtmlUnitDriver