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.internal.FindsByClassName
,org.openqa.selenium.internal.FindsByCssSelector
,org.openqa.selenium.internal.FindsById
,org.openqa.selenium.internal.FindsByLinkText
,org.openqa.selenium.internal.FindsByName
,org.openqa.selenium.internal.FindsByTagName
,org.openqa.selenium.internal.FindsByXPath
,org.openqa.selenium.JavascriptExecutor
,org.openqa.selenium.SearchContext
,org.openqa.selenium.WebDriver
public class LocalHostWebConnectionHtmlUnitDriver extends org.springframework.test.web.servlet.htmlunit.webdriver.WebConnectionHtmlUnitDriver
LocalHostWebConnectionHtmlUnitDriver
will automatically prefix relative URLs withlocalhost:${local.server.port}
.- Since:
- 1.4.0
Nested Class Summary
Nested classes/interfaces inherited from class org.openqa.selenium.htmlunit.HtmlUnitDriver
org.openqa.selenium.htmlunit.HtmlUnitDriver.HtmlUnitWindow, 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
Constructor Summary
Constructors Constructor Description LocalHostWebConnectionHtmlUnitDriver(org.springframework.core.env.Environment environment)
LocalHostWebConnectionHtmlUnitDriver(org.springframework.core.env.Environment environment, boolean enableJavascript)
LocalHostWebConnectionHtmlUnitDriver(org.springframework.core.env.Environment environment, com.gargoylesoftware.htmlunit.BrowserVersion browserVersion)
LocalHostWebConnectionHtmlUnitDriver(org.springframework.core.env.Environment environment, org.openqa.selenium.Capabilities capabilities)
Method Summary
All Methods Instance Methods Concrete Methods 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, close, executeAsyncScript, executeScript, findElement, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElements, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, get, getBrowserVersion, getCapabilities, getCurrentUrl, getCurrentWindow, getElementById, getKeyboard, getMouse, getPageSource, getTitle, getWindowHandle, getWindowHandles, implicitlyWaitFor, isAcceptSslCertificates, isDownloadImages, isJavascriptEnabled, lastPage, manage, navigate, newWebClient, pickWindow, quit, setAcceptSslCertificates, setAutoProxy, setDownloadImages, setExecutor, setHTTPProxy, setJavascriptEnabled, setProxy, setProxySettings, setSocksProxy, setSocksProxy, switchTo, toWebElement
Constructor Detail
LocalHostWebConnectionHtmlUnitDriver
public LocalHostWebConnectionHtmlUnitDriver(org.springframework.core.env.Environment environment)
LocalHostWebConnectionHtmlUnitDriver
public LocalHostWebConnectionHtmlUnitDriver(org.springframework.core.env.Environment environment, boolean enableJavascript)
LocalHostWebConnectionHtmlUnitDriver
public LocalHostWebConnectionHtmlUnitDriver(org.springframework.core.env.Environment environment, com.gargoylesoftware.htmlunit.BrowserVersion browserVersion)
LocalHostWebConnectionHtmlUnitDriver
public LocalHostWebConnectionHtmlUnitDriver(org.springframework.core.env.Environment environment, org.openqa.selenium.Capabilities capabilities)