public class WebConnectionHtmlUnitDriver
extends org.openqa.selenium.htmlunit.HtmlUnitDriver
WebConnectionHtmlUnitDriver
は、HtmlUnitDriver
インスタンスの WebConnection
の構成を有効にします。 これは、MockMvcWebConnection
を注入できるため便利です。
MockMvcHtmlUnitDriverBuilder
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
コンストラクターと説明 |
---|
WebConnectionHtmlUnitDriver() |
WebConnectionHtmlUnitDriver(boolean enableJavascript) |
WebConnectionHtmlUnitDriver(com.gargoylesoftware.htmlunit.BrowserVersion browserVersion) |
WebConnectionHtmlUnitDriver(org.openqa.selenium.Capabilities capabilities) |
修飾子と型 | メソッドと説明 |
---|---|
com.gargoylesoftware.htmlunit.WebClient | getWebClient() 現在の WebClient を公開して返します。 |
com.gargoylesoftware.htmlunit.WebConnection | getWebConnection() WebClient の現在の WebConnection にアクセスします。 |
protected com.gargoylesoftware.htmlunit.WebClient | modifyWebClient(com.gargoylesoftware.htmlunit.WebClient webClient) 付属の WebClient を変更し、その WebConnection に後で使用できるように、その WebClient への参照を保持します。 |
protected com.gargoylesoftware.htmlunit.WebClient | modifyWebClientInternal(com.gargoylesoftware.htmlunit.WebClient webClient) 付属の WebClient を変更します。 |
void | setWebConnection(com.gargoylesoftware.htmlunit.WebConnection webConnection) WebClient で使用する WebConnection を設定します。 |
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, 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
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public WebConnectionHtmlUnitDriver()
public WebConnectionHtmlUnitDriver(com.gargoylesoftware.htmlunit.BrowserVersion browserVersion)
public WebConnectionHtmlUnitDriver(boolean enableJavascript)
public WebConnectionHtmlUnitDriver(org.openqa.selenium.Capabilities capabilities)
protected final com.gargoylesoftware.htmlunit.WebClient modifyWebClient(com.gargoylesoftware.htmlunit.WebClient webClient)
WebClient
を変更し、その WebConnection
に後で使用できるように、その WebClient
への参照を保持します。 デフォルトの動作については HtmlUnitDriver.modifyWebClient(com.gargoylesoftware.htmlunit.WebClient)
に、さらにカスタマイズするには modifyWebClientInternal(com.gargoylesoftware.htmlunit.WebClient)
に委譲します。
org.openqa.selenium.htmlunit.HtmlUnitDriver
の modifyWebClient
webClient
- 変更するクライアント HtmlUnitDriver.modifyWebClient(WebClient)
, modifyWebClientInternal(WebClient)
protected com.gargoylesoftware.htmlunit.WebClient modifyWebClientInternal(com.gargoylesoftware.htmlunit.WebClient webClient)
WebClient
を変更します。デフォルトの実装は、提供されたクライアントを変更せずに返すだけです。
サブクラスは、このメソッドをオーバーライドして、HtmlUnitDriver
が使用する WebClient
をカスタマイズできます。
webClient
- 変更するクライアント public com.gargoylesoftware.htmlunit.WebClient getWebClient()
WebClient
を公開して返します。org.openqa.selenium.htmlunit.HtmlUnitDriver
の getWebClient
public void setWebConnection(com.gargoylesoftware.htmlunit.WebConnection webConnection)
WebClient
で使用する WebConnection
を設定します。webConnection
- 使用する WebConnection
public com.gargoylesoftware.htmlunit.WebConnection getWebConnection()
WebClient
の現在の WebConnection
にアクセスします。WebConnection