|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.selenium.htmlunit.HtmlUnitDriver
org.specrunner.webdriver.HtmlUnitDriverLocal
public class HtmlUnitDriverLocal
Implementation for HtmlUnitDriver which enable recovering WebClient instance.
| 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 |
| Field Summary |
|---|
| Fields inherited from class org.openqa.selenium.htmlunit.HtmlUnitDriver |
|---|
INVALIDSELECTIONERROR, INVALIDXPATHERROR |
| Constructor Summary | |
|---|---|
HtmlUnitDriverLocal()
Default constructor. |
|
HtmlUnitDriverLocal(boolean enableJavascript)
Creates the client with JS enabled or not. |
|
HtmlUnitDriverLocal(com.gargoylesoftware.htmlunit.BrowserVersion version)
Creates a client with a given version. |
|
HtmlUnitDriverLocal(org.openqa.selenium.Capabilities capabilities)
Creates a driver with preset capabilities. |
|
| Method Summary | |
|---|---|
com.gargoylesoftware.htmlunit.WebClient |
getWebClient()
Return the webdriver client. |
void |
initialize()
Perform some missing initialization on webclient. |
void |
setHeader(String name,
String value)
Adds a header to the client. |
| Methods inherited from class org.openqa.selenium.htmlunit.HtmlUnitDriver |
|---|
assertElementNotStale, close, executeAsyncScript, executeScript, findElement, findElementByCssSelector, findElementById, findElementByLinkText, findElementByName, findElementByPartialLinkText, findElementByTagName, findElementByXPath, findElements, findElementsByCssSelector, findElementsById, findElementsByLinkText, findElementsByName, findElementsByPartialLinkText, findElementsByTagName, findElementsByXPath, get, get, getCapabilities, getCurrentUrl, getCurrentWindow, getKeyboard, getMouse, getPageSource, getTitle, getWindowHandle, getWindowHandles, implicitlyWaitFor, isJavascriptEnabled, lastPage, manage, modifyWebClient, navigate, newHtmlUnitWebElement, newWebClient, pickWindow, quit, setAutoProxy, setHTTPProxy, setJavascriptEnabled, setProxy, setProxySettings, setSocksProxy, setSocksProxy, switchTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlUnitDriverLocal()
public HtmlUnitDriverLocal(boolean enableJavascript)
enableJavascript - true, to enable java script, false, otherwise.public HtmlUnitDriverLocal(com.gargoylesoftware.htmlunit.BrowserVersion version)
version - The browser version.public HtmlUnitDriverLocal(org.openqa.selenium.Capabilities capabilities)
capabilities - The capabilities.| Method Detail |
|---|
public com.gargoylesoftware.htmlunit.WebClient getWebClient()
IHtmlUnitDriver
getWebClient in interface IHtmlUnitDrivergetWebClient in class org.openqa.selenium.htmlunit.HtmlUnitDriverpublic void initialize()
public void setHeader(String name,
String value)
name - The header name.value - The header value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||