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.HasInputDevices
,org.openqa.selenium.JavascriptExecutor
,org.openqa.selenium.SearchContext
,org.openqa.selenium.WebDriver
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.JavaScriptResultsCollection
Nested classes/interfaces inherited from interface org.openqa.selenium.WebDriver
org.openqa.selenium.WebDriver.ImeHandler, 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, INVALIDSELECTIONERROR, INVALIDXPATHERROR, JAVASCRIPT_ENABLED
-
Constructor Summary
ConstructorDescriptionLocalHostWebConnectionHtmlUnitDriver
(Environment environment) LocalHostWebConnectionHtmlUnitDriver
(Environment environment, boolean enableJavascript) LocalHostWebConnectionHtmlUnitDriver
(Environment environment, com.gargoylesoftware.htmlunit.BrowserVersion browserVersion) LocalHostWebConnectionHtmlUnitDriver
(Environment environment, org.openqa.selenium.Capabilities capabilities) -
Method Summary
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, findElements, get, getAlert, getBrowserVersion, getCapabilities, getCurrentUrl, getCurrentWindow, getElementsMap, getKeyboard, getMouse, getPageSource, getTitle, getWindowHandle, getWindowHandles, getWindowManager, implicitlyWaitFor, isAcceptSslCertificates, isDownloadImages, isJavascriptEnabled, manage, mouseDown, mouseMove, mouseUp, navigate, newWebClient, quit, runAsync, sendKeys, setAcceptSslCertificates, setAutoProxy, setCurrentWindow, setDownloadImages, setExecutor, setHTTPProxy, setJavascriptEnabled, setProxy, setProxySettings, setSocksProxy, setSocksProxy, submit, switchTo, 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
-
LocalHostWebConnectionHtmlUnitDriver
-
LocalHostWebConnectionHtmlUnitDriver
public LocalHostWebConnectionHtmlUnitDriver(Environment environment, com.gargoylesoftware.htmlunit.BrowserVersion browserVersion) -
LocalHostWebConnectionHtmlUnitDriver
public LocalHostWebConnectionHtmlUnitDriver(Environment environment, org.openqa.selenium.Capabilities capabilities)
-
-
Method Details
-
get
- Specified by:
get
in interfaceorg.openqa.selenium.WebDriver
- Overrides:
get
in classorg.openqa.selenium.htmlunit.HtmlUnitDriver
-