public class CustomHtmlUnitDriver
extends org.openqa.selenium.htmlunit.HtmlUnitDriver
org.openqa.selenium.htmlunit.HtmlUnitDriver.HtmlUnitWindow, org.openqa.selenium.htmlunit.HtmlUnitDriver.JavaScriptResultsCollection
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 and Description |
---|
CustomHtmlUnitDriver() |
CustomHtmlUnitDriver(boolean enableJavascript) |
CustomHtmlUnitDriver(com.gargoylesoftware.htmlunit.BrowserVersion version) |
CustomHtmlUnitDriver(org.openqa.selenium.Capabilities capabilities) |
Modifier and Type | Method and Description |
---|---|
protected com.gargoylesoftware.htmlunit.WebClient |
modifyWebClient(com.gargoylesoftware.htmlunit.WebClient client)
Overridden to customize the WebClient that the HtmlUnit driver uses, in
order to ignore Javascript errors.
|
assertElementNotStale, close, executeAsyncScript, executeScript, findElement, findElementByClassName, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElements, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, get, get, getBrowserVersion, getCapabilities, getCurrentUrl, getCurrentWindow, getKeyboard, getMouse, getPageSource, getTitle, getWebClient, getWindowHandle, getWindowHandles, implicitlyWaitFor, isJavascriptEnabled, lastPage, manage, navigate, newHtmlUnitWebElement, newWebClient, pickWindow, quit, setAutoProxy, setHTTPProxy, setJavascriptEnabled, setProxy, setProxySettings, setSocksProxy, setSocksProxy, switchTo
public CustomHtmlUnitDriver(com.gargoylesoftware.htmlunit.BrowserVersion version)
public CustomHtmlUnitDriver()
public CustomHtmlUnitDriver(boolean enableJavascript)
public CustomHtmlUnitDriver(org.openqa.selenium.Capabilities capabilities)
protected com.gargoylesoftware.htmlunit.WebClient modifyWebClient(com.gargoylesoftware.htmlunit.WebClient client)
modifyWebClient
in class org.openqa.selenium.htmlunit.HtmlUnitDriver
client
- - the client to modifyCopyright © 2017. All rights reserved.