Class LocalHostWebConnectionHtmlUnitDriver

java.lang.Object
org.openqa.selenium.htmlunit.HtmlUnitDriver
org.springframework.test.web.servlet.htmlunit.webdriver.WebConnectionHtmlUnitDriver
org.springframework.boot.test.web.htmlunit.webdriver.LocalHostWebConnectionHtmlUnitDriver
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 LocalHostWebConnectionHtmlUnitDriver extends WebConnectionHtmlUnitDriver
LocalHostWebConnectionHtmlUnitDriver will automatically prefix relative URLs with localhost:${local.server.port}.
Since:
1.4.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
     
    LocalHostWebConnectionHtmlUnitDriver(Environment environment, boolean enableJavascript)
     
    LocalHostWebConnectionHtmlUnitDriver(Environment environment, org.htmlunit.BrowserVersion browserVersion)
     
    LocalHostWebConnectionHtmlUnitDriver(Environment environment, 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

    • LocalHostWebConnectionHtmlUnitDriver

      public LocalHostWebConnectionHtmlUnitDriver(Environment environment)
    • LocalHostWebConnectionHtmlUnitDriver

      public LocalHostWebConnectionHtmlUnitDriver(Environment environment, boolean enableJavascript)
    • LocalHostWebConnectionHtmlUnitDriver

      public LocalHostWebConnectionHtmlUnitDriver(Environment environment, org.htmlunit.BrowserVersion browserVersion)
    • LocalHostWebConnectionHtmlUnitDriver

      public LocalHostWebConnectionHtmlUnitDriver(Environment environment, 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