abstract class Chrome extends (MixedFixtures.this)#NoArgHelper with WebBrowser with ChromeFactory
NoArg
subclass that provides a fixture composed of an Application
, running TestServer
, and
Selenium ChromeDriver
.
- Source
- MixedFixtures.scala
- Alphabetic
- By Inheritance
- Chrome
- ChromeFactory
- BrowserFactory
- WebBrowser
- NoArgHelper
- NoArg
- Function0
- DelayedInit
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Chrome(appFun: => Application = new GuiceApplicationBuilder().build(), port: Int = Helpers.testServerPort)
Type Members
- final class ActiveElementTarget extends SwitchTarget[Element]
- Definition Classes
- WebBrowser
- final class AlertTarget extends SwitchTarget[Alert]
- Definition Classes
- WebBrowser
- final class Checkbox extends Element
- Definition Classes
- WebBrowser
- case class ClassNameQuery extends Query with Product with Serializable
- Definition Classes
- WebBrowser
- final class ColorField extends ValueElement
- Definition Classes
- WebBrowser
- class CookiesNoun extends AnyRef
- Definition Classes
- WebBrowser
- case class CssSelectorQuery extends Query with Product with Serializable
- Definition Classes
- WebBrowser
- final class DateField extends ValueElement
- Definition Classes
- WebBrowser
- final class DateTimeField extends ValueElement
- Definition Classes
- WebBrowser
- final class DateTimeLocalField extends ValueElement
- Definition Classes
- WebBrowser
- final class DefaultContentTarget extends SwitchTarget[WebDriver]
- Definition Classes
- WebBrowser
- case class Dimension extends Product with Serializable
- Definition Classes
- WebBrowser
- sealed trait Element extends AnyRef
- Definition Classes
- WebBrowser
- final class EmailField extends ValueElement
- Definition Classes
- WebBrowser
- final class FrameElementTarget extends SwitchTarget[WebDriver]
- Definition Classes
- WebBrowser
- final class FrameIndexTarget extends SwitchTarget[WebDriver]
- Definition Classes
- WebBrowser
- final class FrameNameOrIdTarget extends SwitchTarget[WebDriver]
- Definition Classes
- WebBrowser
- final class FrameWebElementTarget extends SwitchTarget[WebDriver]
- Definition Classes
- WebBrowser
- case class IdQuery extends Query with Product with Serializable
- Definition Classes
- WebBrowser
- case class LinkTextQuery extends Query with Product with Serializable
- Definition Classes
- WebBrowser
- final class MonthField extends ValueElement
- Definition Classes
- WebBrowser
- class MultiSel extends Element
- Definition Classes
- WebBrowser
- class MultiSelOptionSeq extends IndexedSeq[String]
- Definition Classes
- WebBrowser
- case class NameQuery extends Query with Product with Serializable
- Definition Classes
- WebBrowser
- final class NumberField extends ValueElement
- Definition Classes
- WebBrowser
- case class PartialLinkTextQuery extends Query with Product with Serializable
- Definition Classes
- WebBrowser
- final class PasswordField extends Element
- Definition Classes
- WebBrowser
- case class Point extends Product with Serializable
- Definition Classes
- WebBrowser
- sealed trait Query extends Product with Serializable
- Definition Classes
- WebBrowser
- final class RadioButton extends Element
- Definition Classes
- WebBrowser
- final class RadioButtonGroup extends AnyRef
- Definition Classes
- WebBrowser
- final class RangeField extends ValueElement
- Definition Classes
- WebBrowser
- final class SearchField extends ValueElement
- Definition Classes
- WebBrowser
- class SingleSel extends Element
- Definition Classes
- WebBrowser
- sealed abstract class SwitchTarget[T] extends AnyRef
- Definition Classes
- WebBrowser
- case class TagNameQuery extends Query with Product with Serializable
- Definition Classes
- WebBrowser
- final class TelField extends ValueElement
- Definition Classes
- WebBrowser
- final class TextArea extends Element
- Definition Classes
- WebBrowser
- final class TextField extends Element
- Definition Classes
- WebBrowser
- final class TimeField extends ValueElement
- Definition Classes
- WebBrowser
- final class UrlField extends ValueElement
- Definition Classes
- WebBrowser
- trait ValueElement extends Element
- Definition Classes
- WebBrowser
- final class WeekField extends ValueElement
- Definition Classes
- WebBrowser
- final class WindowTarget extends SwitchTarget[WebDriver]
- Definition Classes
- WebBrowser
- final class WrappedCookie extends AnyRef
- Definition Classes
- WebBrowser
- case class XPathQuery extends Query with Product with Serializable
- Definition Classes
- WebBrowser
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val activeElement: ActiveElementTarget
- Definition Classes
- WebBrowser
- def addCookie(name: String, value: String, path: String, expiry: Date, domain: String, secure: Boolean)(implicit driver: WebDriver): Unit
- Definition Classes
- WebBrowser
- val alertBox: AlertTarget
- Definition Classes
- WebBrowser
- lazy val app: Application
The lazy instance created from passed
appFun
- def apply(): Unit
Runs a
TestServer
using the passed-inApplication
and port before executing the test body, which can use theChromeDriver
provided bywebDriver
, ensuring all are are stopped after the test body completes.Runs a
TestServer
using the passed-inApplication
and port before executing the test body, which can use theChromeDriver
provided bywebDriver
, ensuring all are are stopped after the test body completes.- Definition Classes
- Chrome → NoArg → Function0
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def callRunning(): Boolean
- Definition Classes
- NoArgHelper
- def captureTo(fileName: String)(implicit driver: WebDriver): Unit
- Definition Classes
- WebBrowser
- def checkbox(queryString: String)(implicit driver: WebDriver, pos: Position): Checkbox
- Definition Classes
- WebBrowser
- def checkbox(query: Query)(implicit driver: WebDriver, pos: Position): Checkbox
- Definition Classes
- WebBrowser
- def chromeDriverService: ChromeDriverService
Default ChromeDriverService used to create a ChromeDriver instance.
Default ChromeDriverService used to create a ChromeDriver instance. Override to provide different service.
- Definition Classes
- ChromeFactory
- lazy val chromeOptions: ChromeOptions
Default ChromeOptions used to create a ChromeDriver instance.
Default ChromeOptions used to create a ChromeDriver instance. Override to provide different options.
- Definition Classes
- ChromeFactory
- def className(className: String): ClassNameQuery
- Definition Classes
- WebBrowser
- def clickOn(element: Element): Unit
- Definition Classes
- WebBrowser
- def clickOn(queryString: String)(implicit driver: WebDriver, pos: Position): Unit
- Definition Classes
- WebBrowser
- def clickOn(query: Query)(implicit driver: WebDriver): Unit
- Definition Classes
- WebBrowser
- def clickOn(element: WebElement): Unit
- Definition Classes
- WebBrowser
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def close()(implicit driver: WebDriver): Unit
- Definition Classes
- WebBrowser
- def colorField(queryString: String)(implicit driver: WebDriver, pos: Position): ColorField
- Definition Classes
- WebBrowser
- def colorField(query: Query)(implicit driver: WebDriver, pos: Position): ColorField
- Definition Classes
- WebBrowser
- def cookie(name: String)(implicit driver: WebDriver, pos: Position): WrappedCookie
- Definition Classes
- WebBrowser
- val cookies: CookiesNoun
- Definition Classes
- WebBrowser
- def createWebDriver(): WebDriver
Creates a new instance of a Selenium ChromeDriver, or returns a BrowserFactory.UnavailableDriver that includes the exception that indicated the driver was not supported on the host platform and an appropriate error message.
Creates a new instance of a Selenium ChromeDriver, or returns a BrowserFactory.UnavailableDriver that includes the exception that indicated the driver was not supported on the host platform and an appropriate error message.
- returns
an new instance of a Selenium ChromeDriver, or a BrowserFactory.UnavailableDriver if it is not available on the host platform.
- Definition Classes
- ChromeFactory → BrowserFactory
- See also
- def cssSelector(cssSelector: String): CssSelectorQuery
- Definition Classes
- WebBrowser
- def currentUrl(implicit driver: WebDriver): String
- Definition Classes
- WebBrowser
- def dateField(queryString: String)(implicit driver: WebDriver, pos: Position): DateField
- Definition Classes
- WebBrowser
- def dateField(query: Query)(implicit driver: WebDriver, pos: Position): DateField
- Definition Classes
- WebBrowser
- def dateTimeField(queryString: String)(implicit driver: WebDriver, pos: Position): DateTimeField
- Definition Classes
- WebBrowser
- def dateTimeField(query: Query)(implicit driver: WebDriver, pos: Position): DateTimeField
- Definition Classes
- WebBrowser
- def dateTimeLocalField(queryString: String)(implicit driver: WebDriver, pos: Position): DateTimeLocalField
- Definition Classes
- WebBrowser
- def dateTimeLocalField(query: Query)(implicit driver: WebDriver, pos: Position): DateTimeLocalField
- Definition Classes
- WebBrowser
- val defaultContent: DefaultContentTarget
- Definition Classes
- WebBrowser
- final def delayedInit(body: => Unit): Unit
- Definition Classes
- NoArg → DelayedInit
- def deleteAllCookies()(implicit driver: WebDriver, pos: Position): Unit
- Definition Classes
- WebBrowser
- def deleteCookie(name: String)(implicit driver: WebDriver, pos: Position): Unit
- Definition Classes
- WebBrowser
- def emailField(queryString: String)(implicit driver: WebDriver, pos: Position): EmailField
- Definition Classes
- WebBrowser
- def emailField(query: Query)(implicit driver: WebDriver, pos: Position): EmailField
- Definition Classes
- WebBrowser
- def enter(value: String)(implicit driver: WebDriver, pos: Position): Unit
- Definition Classes
- WebBrowser
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- lazy val errorMsg: String
- Definition Classes
- NoArgHelper
- def executeAsyncScript(script: String, args: AnyRef*)(implicit driver: WebDriver): AnyRef
- Definition Classes
- WebBrowser
- def executeScript[T](script: String, args: AnyRef*)(implicit driver: WebDriver): AnyRef
- Definition Classes
- WebBrowser
- def find(queryString: String)(implicit driver: WebDriver): Option[Element]
- Definition Classes
- WebBrowser
- def find(query: Query)(implicit driver: WebDriver): Option[Element]
- Definition Classes
- WebBrowser
- def findAll(queryString: String)(implicit driver: WebDriver): Iterator[Element]
- Definition Classes
- WebBrowser
- def findAll(query: Query)(implicit driver: WebDriver): Iterator[Element]
- Definition Classes
- WebBrowser
- def frame(query: Query)(implicit driver: WebDriver, pos: Position): FrameWebElementTarget
- Definition Classes
- WebBrowser
- def frame(element: Element): FrameElementTarget
- Definition Classes
- WebBrowser
- def frame(element: WebElement): FrameWebElementTarget
- Definition Classes
- WebBrowser
- def frame(nameOrId: String): FrameNameOrIdTarget
- Definition Classes
- WebBrowser
- def frame(index: Int): FrameIndexTarget
- Definition Classes
- WebBrowser
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def goBack()(implicit driver: WebDriver): Unit
- Definition Classes
- WebBrowser
- def goForward()(implicit driver: WebDriver): Unit
- Definition Classes
- WebBrowser
- def goTo(page: Page)(implicit driver: WebDriver): Unit
- Definition Classes
- WebBrowser
- def goTo(url: String)(implicit driver: WebDriver): Unit
- Definition Classes
- WebBrowser
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def id(elementId: String): IdQuery
- Definition Classes
- WebBrowser
- implicit def implicitApp: Application
Makes the passed in
Application
implicit. - def implicitlyWait(timeout: Span)(implicit driver: WebDriver): Unit
- Definition Classes
- WebBrowser
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isScreenshotSupported(implicit driver: WebDriver): Boolean
- Definition Classes
- WebBrowser
- def linkText(linkText: String): LinkTextQuery
- Definition Classes
- WebBrowser
- def monthField(queryString: String)(implicit driver: WebDriver, pos: Position): MonthField
- Definition Classes
- WebBrowser
- def monthField(query: Query)(implicit driver: WebDriver, pos: Position): MonthField
- Definition Classes
- WebBrowser
- def multiSel(queryString: String)(implicit driver: WebDriver, pos: Position): MultiSel
- Definition Classes
- WebBrowser
- def multiSel(query: Query)(implicit driver: WebDriver, pos: Position): MultiSel
- Definition Classes
- WebBrowser
- def name(elementName: String): NameQuery
- Definition Classes
- WebBrowser
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def numberField(queryString: String)(implicit driver: WebDriver, pos: Position): NumberField
- Definition Classes
- WebBrowser
- def numberField(query: Query)(implicit driver: WebDriver, pos: Position): NumberField
- Definition Classes
- WebBrowser
- def pageSource(implicit driver: WebDriver): String
- Definition Classes
- WebBrowser
- def pageTitle(implicit driver: WebDriver): String
- Definition Classes
- WebBrowser
- def partialLinkText(partialLinkText: String): PartialLinkTextQuery
- Definition Classes
- WebBrowser
- var port: Int
- implicit def portNumber: PortNumber
Implicit
PortNumber
method that wrapsport
.Implicit
PortNumber
method that wrapsport
. The value returned fromportNumber.value
will be same as the value ofport
. - def pressKeys(value: String)(implicit driver: WebDriver): Unit
- Definition Classes
- WebBrowser
- def pwdField(queryString: String)(implicit driver: WebDriver, pos: Position): PasswordField
- Definition Classes
- WebBrowser
- def pwdField(query: Query)(implicit driver: WebDriver, pos: Position): PasswordField
- Definition Classes
- WebBrowser
- def quit()(implicit driver: WebDriver): Unit
- Definition Classes
- WebBrowser
- def radioButton(queryString: String)(implicit driver: WebDriver, pos: Position): RadioButton
- Definition Classes
- WebBrowser
- def radioButton(query: Query)(implicit driver: WebDriver, pos: Position): RadioButton
- Definition Classes
- WebBrowser
- def radioButtonGroup(groupName: String)(implicit driver: WebDriver, pos: Position): RadioButtonGroup
- Definition Classes
- WebBrowser
- def rangeField(queryString: String)(implicit driver: WebDriver, pos: Position): RangeField
- Definition Classes
- WebBrowser
- def rangeField(query: Query)(implicit driver: WebDriver, pos: Position): RangeField
- Definition Classes
- WebBrowser
- def reloadPage()(implicit driver: WebDriver): Unit
- Definition Classes
- WebBrowser
- def running(): Unit
- Definition Classes
- NoArgHelper
- def searchField(queryString: String)(implicit driver: WebDriver, pos: Position): SearchField
- Definition Classes
- WebBrowser
- def searchField(query: Query)(implicit driver: WebDriver, pos: Position): SearchField
- Definition Classes
- WebBrowser
- def setCaptureDir(targetDirPath: String): Unit
- Definition Classes
- WebBrowser
- def setScriptTimeout(timeout: Span)(implicit driver: WebDriver): Unit
- Definition Classes
- WebBrowser
- def singleSel(queryString: String)(implicit driver: WebDriver, pos: Position): SingleSel
- Definition Classes
- WebBrowser
- def singleSel(query: Query)(implicit driver: WebDriver, pos: Position): SingleSel
- Definition Classes
- WebBrowser
- final val styleName: Int
- Definition Classes
- NoArg
- def submit()(implicit driver: WebDriver, pos: Position): Unit
- Definition Classes
- WebBrowser
- def switchTo[T](target: SwitchTarget[T])(implicit driver: WebDriver, pos: Position): T
- Definition Classes
- WebBrowser
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tagName(tagName: String): TagNameQuery
- Definition Classes
- WebBrowser
- def telField(queryString: String)(implicit driver: WebDriver, pos: Position): TelField
- Definition Classes
- WebBrowser
- def telField(query: Query)(implicit driver: WebDriver, pos: Position): TelField
- Definition Classes
- WebBrowser
- def textArea(queryString: String)(implicit driver: WebDriver, pos: Position): TextArea
- Definition Classes
- WebBrowser
- def textArea(query: Query)(implicit driver: WebDriver, pos: Position): TextArea
- Definition Classes
- WebBrowser
- def textField(queryString: String)(implicit driver: WebDriver, pos: Position): TextField
- Definition Classes
- WebBrowser
- def textField(query: Query)(implicit driver: WebDriver, pos: Position): TextField
- Definition Classes
- WebBrowser
- def timeField(queryString: String)(implicit driver: WebDriver, pos: Position): TimeField
- Definition Classes
- WebBrowser
- def timeField(query: Query)(implicit driver: WebDriver, pos: Position): TimeField
- Definition Classes
- WebBrowser
- def toString(): String
- Definition Classes
- Function0 → AnyRef → Any
- def urlField(queryString: String)(implicit driver: WebDriver, pos: Position): UrlField
- Definition Classes
- WebBrowser
- def urlField(query: Query)(implicit driver: WebDriver, pos: Position): UrlField
- Definition Classes
- WebBrowser
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- implicit lazy val webDriver: WebDriver
A lazy implicit instance of
ChromeDriver
, it will holdUnavailableDriver
ifChromeDriver
is not available in the running machine. - def weekField(queryString: String)(implicit driver: WebDriver, pos: Position): WeekField
- Definition Classes
- WebBrowser
- def weekField(query: Query)(implicit driver: WebDriver, pos: Position): WeekField
- Definition Classes
- WebBrowser
- def window(nameOrHandle: String): WindowTarget
- Definition Classes
- WebBrowser
- def windowHandle(implicit driver: WebDriver): String
- Definition Classes
- WebBrowser
- def windowHandles(implicit driver: WebDriver): Set[String]
- Definition Classes
- WebBrowser
- def withScreenshot[T](fun: => T)(implicit driver: WebDriver): T
- Definition Classes
- WebBrowser
- def xpath(xpath: String): XPathQuery
- Definition Classes
- WebBrowser
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)