case class HtmlUnitInfo(enableJavascript: Boolean) extends BrowserInfo with Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- HtmlUnitInfo
- Serializable
- Product
- Equals
- BrowserInfo
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new HtmlUnitInfo(enableJavascript: Boolean)
Value Members
- def createWebDriver(): WebDriver
Creates a new instance of a Selenium
HtmlUnitDriver
, or returns a BrowserFactory.UnavailableDriver that includes the exception that indicatesHtmlUnit
was not supported on the host platform and an appropriate error message.Creates a new instance of a Selenium
HtmlUnitDriver
, or returns a BrowserFactory.UnavailableDriver that includes the exception that indicatesHtmlUnit
was not supported on the host platform and an appropriate error message.- returns
an new instance of a Selenium
HtmlUnitDriver
, or a BrowserFactory.UnavailableDriver ifHtmlUnit
was not available on the host platform.
- Definition Classes
- → BrowserInfo
- val enableJavascript: Boolean
- val name: String
- Definition Classes
- BrowserInfo
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val tagName: String
- Definition Classes
- BrowserInfo
HtmlUnit
browser info, which encapsulates the browser name,"[HtmlUnit]"
; tag name,org.scalatest.tags.HtmlUnitBrowser
; and a factory method that produces a SeleniumHtmlUnitDriver
.This object's superclass,
BrowserInfo
, is used by AllBrowsersPerSuite and AllBrowsersPerTest: anIndexedSeq[BrowserInfo]
is returned from thebrowsers
field of these traits to specify the browsers to share between tests. When tests are registered,AllBrowsersPerSuite
andAllBrowsersPerTest
use the browser name to ensure the tests shared by multiple browsers have unique names (the name of each shared test is appended with a browser name). When the tests run, these traits use theBrowserInfo
's factory method to createWebDriver
s as needed. TheAllBrowsersPerSuite
andAllBrowsersPerTest
traits use the tag name to automatically tag any tests that use a particularWebDriver
with the appropriate tag so that tests can be dynamically filtered by the browser the use.