LocalHostWebConnectionHtmlUnitDriver

LocalHostWebConnectionHtmlUnitDriver will automatically prefix relative URLs with localhost:${local.server.port}.

Author

Phillip Webb

Since

1.4.0

Constructors

Link copied to clipboard
constructor(environment: Environment)
constructor(environment: Environment, enableJavascript: Boolean)
constructor(environment: Environment, browserVersion: BrowserVersion)
constructor(environment: Environment, capabilities: Capabilities)

Properties

Link copied to clipboard
val BROWSER_LANGUAGE_CAPABILITY: String = "browserLanguage"
Link copied to clipboard
val DOWNLOAD_IMAGES_CAPABILITY: String = "downloadImages"
Link copied to clipboard
val JAVASCRIPT_ENABLED: String = "javascriptEnabled"

Functions

Link copied to clipboard
open fun click(element: DomElement, directClick: Boolean)
Link copied to clipboard
open fun close()
Link copied to clipboard
open fun doubleClick(element: DomElement)
Link copied to clipboard
open fun executeAsyncScript(script: String, args: Array<Any>): Any
Link copied to clipboard
open fun executeScript(script: String, args: Array<Any>): Any
Link copied to clipboard
open fun findElement(by: By): WebElement
Link copied to clipboard
open fun findElements(by: By): List<WebElement>
Link copied to clipboard
open fun get(url: String)
Link copied to clipboard
open fun getAlert(): HtmlUnitAlert
Link copied to clipboard
open fun getBrowserVersion(): BrowserVersion
Link copied to clipboard
open fun getCapabilities(): Capabilities
Link copied to clipboard
open fun getCurrentUrl(): String
Link copied to clipboard
open fun getCurrentWindow(): HtmlUnitWindow
Link copied to clipboard
open fun getElementsMap(): HtmlUnitDriver.ElementsMap
Link copied to clipboard
open fun getKeyboard(): HtmlUnitKeyboard
Link copied to clipboard
open fun getMouse(): HtmlUnitMouse
Link copied to clipboard
open fun getPageSource(): String
Link copied to clipboard
open fun getPinnedScripts(): Set<ScriptKey>
Link copied to clipboard
open fun getTitle(): String
Link copied to clipboard
open fun getWebClient(): WebClient
Link copied to clipboard
open fun getWebConnection(): WebConnection
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun manage(): WebDriver.Options
Link copied to clipboard
open fun mouseDown(element: DomElement)
Link copied to clipboard
open fun mouseMove(element: DomElement)
Link copied to clipboard
open fun mouseUp(element: DomElement)
Link copied to clipboard
open fun navigate(): WebDriver.Navigation
Link copied to clipboard
open fun openNewWindow()
Link copied to clipboard
open fun perform(sequences: Collection<Sequence>)
Link copied to clipboard
open fun pin(script: String): ScriptKey
Link copied to clipboard
open fun quit()
Link copied to clipboard
open fun resetInputState()
Link copied to clipboard
open fun sendKeys(element: HtmlUnitWebElement, value: Array<CharSequence>)
Link copied to clipboard
Link copied to clipboard
open fun setAutoProxy(autoProxyUrl: String)
Link copied to clipboard
open fun setCurrentWindow(window: WebWindow)
Link copied to clipboard
open fun setDownloadImages(downloadImages: Boolean)
Link copied to clipboard
open fun setExecutor(executor: Executor)
Link copied to clipboard
open fun setHTTPProxy(host: String, port: Int, noProxyHosts: List<String>)
Link copied to clipboard
open fun setJavascriptEnabled(enableJavascript: Boolean)
Link copied to clipboard
open fun setProxy(host: String, port: Int)
Link copied to clipboard
open fun setProxySettings(proxy: Proxy)
Link copied to clipboard
open fun setSocksProxy(host: String, port: Int)
Link copied to clipboard
open fun setWebConnection(webConnection: WebConnection)
Link copied to clipboard
open fun submit(element: HtmlUnitWebElement)
Link copied to clipboard
open fun switchTo(): WebDriver.TargetLocator
Link copied to clipboard
open fun unpin(key: ScriptKey)