org.pageobject.core.dsl

BrowserDsl

trait BrowserDsl extends BrowserPageDsl with BrowserControlDsl

This trait is a summary of all PageObject DSL traits.

They are two groups of PageObject DSL traits:

BrowserPageDsl - implements all commands that should be used by PageObjects - should not interact with the browser window (like navigating) BrowserControlDSL - implements commands provided by the old acala test selenium dsl - should normally be not needed - PageBrowser

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BrowserDsl
  2. BrowserControlDsl
  3. WindowDsl
  4. NavigationDsl
  5. DriverDsl
  6. BrowserPageDsl
  7. LocatorDsl
  8. ScriptDsl
  9. PageDsl
  10. QueryDsl
  11. InputDsl
  12. SwitchTargetDsl
  13. CookieDsl
  14. ClickDsl
  15. AnyRef
  16. Any
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def $(query: Query)(implicit reference: OwnPageReference): UntypedLocator

    Finds and returns the first DOM Element selected by the specified Query, calls TestHelper.failTest if element not found or more then one element was found.

    Finds and returns the first DOM Element selected by the specified Query, calls TestHelper.failTest if element not found or more then one element was found.

    query

    the Query with which to search

    returns

    the Untyped element selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. def a(query: Query)(implicit reference: OwnPageReference): HtmlLocator

    Attributes
    protected
    Definition Classes
    LocatorDsl
  8. val activeElement: ActiveElementTarget

    This value supports switching to the currently active element in PageObject DSL.

    This value supports switching to the currently active element in PageObject DSL.

    This class is enables the following syntax:

    switch to activeElement
    ^
    

    Attributes
    protected
    Definition Classes
    SwitchTargetDsl
  9. val add: AddCookie.type

    Attributes
    protected
    Definition Classes
    CookieDsl
  10. def addCookie(name: String, value: String, path: String = "/", expiry: Option[Date] = None, domain: Option[String] = None, secure: Boolean = false)(implicit driver: WebDriver): Unit

    Add cookie in the web browser.

    Add cookie in the web browser.

    If the cookie's domain name is left blank (default), it is assumed that the cookie is meant for the domain of the current document.

    name

    cookie's name

    value

    cookie's value

    path

    cookie's path

    expiry

    cookie's expiry data

    domain

    cookie's domain name

    secure

    whether this cookie is secured.

    driver

    the WebDriver with which to drive the browser

    Definition Classes
    CookieDsl
  11. val alertBox: AlertTarget

    This value supports switching to the alert box in PageObject DSL.

    This value supports switching to the alert box in PageObject DSL.

    This class is enables the following syntax:

    switch to alertBox
    ^
    

    Attributes
    protected
    Definition Classes
    SwitchTargetDsl
  12. object all

    Attributes
    protected
    Definition Classes
    CookieDsl
  13. object animation extends Animation

    Definition Classes
    ClickDsl
  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def button(query: Query)(implicit reference: OwnPageReference): ButtonLocator

    Finds and returns the first button or input type="button" selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a button.

    Finds and returns the first button or input type="button" selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a button.

    query

    the Query with which to search

    returns

    the TextField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  16. def checkbox(query: Query)(implicit reference: OwnPageReference): CheckboxLocator

    Finds and returns the first Checkbox selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a Checkbox.

    Finds and returns the first Checkbox selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a Checkbox.

    query

    the Query with which to search

    returns

    the Checkbox selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  17. def className(className: String): ClassNameQuery

    Returns a class name query.

    Returns a class name query.

    This method enables syntax such as the following:

    private val foo = $(className("foo"))

    className("class") will select the same elements like cssSelector(".class"). See also the example in documentation of trait QueryDsl.

    className

    the query string for this query.

    Attributes
    protected
    Definition Classes
    QueryDsl
  18. object click

    Attributes
    protected
    Definition Classes
    ClickDsl
  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def close()(implicit driver: WebDriver): Unit

    Closes the current browser window, and exits the driver if the current window was the only one remaining.

    Closes the current browser window, and exits the driver if the current window was the only one remaining.

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    NavigationDsl
  21. def colorField(query: Query)(implicit reference: OwnPageReference): ColorFieldLocator

    Finds and returns the first ColorField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a ColorField.

    Finds and returns the first ColorField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a ColorField.

    query

    the Query with which to search

    returns

    the ColorField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  22. def cookie(name: String)(implicit driver: WebDriver): WrappedCookie

    Get a saved cookie from web browser, throws TestFailedException if the cookie does not exist.

    Get a saved cookie from web browser, throws TestFailedException if the cookie does not exist.

    name

    cookie's name

    returns

    a WrappedCookie instance

    Definition Classes
    CookieDsl
  23. val cookies: Cookies.type

    Attributes
    protected
    Definition Classes
    CookieDsl
  24. def cssSelector(cssSelector: String): CssSelectorQuery

    Returns a CSS selector query.

    Returns a CSS selector query.

    This method enables syntax such as the following:

    private val foo = $(cssSelector("foo"))

    See also the example in documentation of trait QueryDsl.

    cssSelector

    the query string for this query.

    Attributes
    protected
    Definition Classes
    QueryDsl
  25. def currentUrl(implicit driver: WebDriver): String

    Returns the URL of the current page.

    Returns the URL of the current page.

    This method invokes getCurrentUrl on the passed WebDriver and returns the result.

    driver

    the WebDriver with which to drive the browser

    returns

    the URL of the current page

    Attributes
    protected
    Definition Classes
    NavigationDsl
  26. def dateField(query: Query)(implicit reference: OwnPageReference): DateFieldLocator

    Finds and returns the first DateField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a DateField.

    Finds and returns the first DateField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a DateField.

    query

    the Query with which to search

    returns

    the DateField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  27. def dateTimeField(query: Query)(implicit reference: OwnPageReference): DateTimeFieldLocator

    Finds and returns the first DateTimeField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a DateTimeField.

    Finds and returns the first DateTimeField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a DateTimeField.

    query

    the Query with which to search

    returns

    the DateTimeField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  28. def dateTimeLocalField(query: Query)(implicit reference: OwnPageReference): DateTimeLocalFieldLocator

    Finds and returns the first DateTimeLocalField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a DateTimeLocalField.

    Finds and returns the first DateTimeLocalField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a DateTimeLocalField.

    query

    the Query with which to search

    returns

    the DateTimeLocalField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  29. val defaultContent: DefaultContentTarget

    This value supports switching to the default content in PageObject DSL.

    This value supports switching to the default content in PageObject DSL.

    This class is enables the following syntax:

    switch to defaultContent
    ^
    

    Attributes
    protected
    Definition Classes
    SwitchTargetDsl
  30. val delete: DeleteCookie.type

    Attributes
    protected
    Definition Classes
    CookieDsl
  31. def deleteAllCookies()(implicit driver: WebDriver): Unit

    Delete all cookies in the current domain from web browser.

    Delete all cookies in the current domain from web browser.

    driver

    the WebDriver with which to drive the browser

    Definition Classes
    CookieDsl
  32. def deleteCookie(name: String)(implicit driver: WebDriver): Unit

    Delete cookie with the specified name from web browser, throws TestFailedException if the specified cookie does not exists.

    Delete cookie with the specified name from web browser, throws TestFailedException if the specified cookie does not exists.

    name

    cookie's name

    driver

    the WebDriver with which to drive the browser

    Definition Classes
    CookieDsl
  33. def div(query: Query)(implicit reference: OwnPageReference): HtmlLocator

    Attributes
    protected
    Definition Classes
    LocatorDsl
  34. def emailField(query: Query)(implicit reference: OwnPageReference): EmailFieldLocator

    Finds and returns the first EmailField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a EmailField.

    Finds and returns the first EmailField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a EmailField.

    query

    the Query with which to search

    returns

    the EmailField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  35. def enter(value: String)(implicit driver: WebDriver): Unit

    Clears the current active TextField or TextArea, and presses the passed keys.

    Clears the current active TextField or TextArea, and presses the passed keys. Throws TestFailedException if current active is not TextField or TextArea.

    value

    keys to press in current active TextField or TextArea

    Attributes
    protected
    Definition Classes
    InputDsl
  36. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  38. def executeAsyncScript(script: String, args: AnyRef*)(implicit driver: WebDriver): Any

    Executes an asynchronous piece of JavaScript in the context of the currently selected frame or window.

    Executes an asynchronous piece of JavaScript in the context of the currently selected frame or window.

    Unlike executing synchronous JavaScript, scripts executed with this method must explicitly signal they are finished by invoking the provided callback. This callback is always injected into the executed function as the last argument.

    The first argument passed to the callback function will be used as the script's result. This value will be handled as follows:

    • For an HTML element, this method returns a WebElement
    • For a number, a Long is returned
    • For a boolean, a Boolean is returned
    • For all other cases, a String is returned
    • For an array, return a List<Object> with each object following the rules above. We support nested lists
    • Unless the value is null or there is no return value, in which null is returned

    Script arguments must be a number, boolean, String, WebElement, or a List of any combination of these. An exception will be thrown if the arguments do not meet these criteria. The arguments will be made available to the JavaScript via the "arguments" variable. (Note that although this behavior is specified by Selenium's JavascriptExecutor Javadoc, it may still be possible for the underlying JavascriptExecutor implementation to return an objects of other types. For example, HtmlUnit has been observed to return a java.util.Map for a Javascript object.)

    script

    the JavaScript to execute

    args

    the arguments to the script, may be empty

    returns

    One of Boolean, Long, String, List, WebElement, or null (following Selenium's JavascriptExecutor Javadoc)

    Attributes
    protected
    Definition Classes
    ScriptDsl
  39. def executeScript[T](script: String, args: AnyRef*)(implicit driver: WebDriver): Any

    Executes JavaScript in the context of the currently selected frame or window.

    Executes JavaScript in the context of the currently selected frame or window. The script fragment provided will be executed as the body of an anonymous function.

    Within the script, you can use document to refer to the current document. Local variables will not be available once the script has finished executing, but global variables will.

    To return a value (e.g. if the script contains a return statement), then the following steps will be taken:

    • For an HTML element, this method returns a WebElement
    • For a decimal, a Double is returned
    • For a non-decimal number, a Long is returned
    • For a boolean, a Boolean is returned
    • For all other cases, a String is returned
    • For an array, return a List<Object> with each object following the rules above. We support nested lists
    • Unless the value is null or there is no return value, in which null is returned

    Script arguments must be a number, boolean, String, WebElement, or a List of any combination of these. An exception will be thrown if the arguments do not meet these criteria. The arguments will be made available to the JavaScript via the "arguments" variable. (Note that although this behavior is specified by Selenium's JavascriptExecutor Javadoc, it may still be possible for the underlying JavascriptExecutor implementation to return an objects of other types. For example, HtmlUnit has been observed to return a java.util.Map for a Javascript object.)

    script

    the JavaScript to execute

    args

    the arguments to the script, may be empty

    returns

    One of Boolean, Long, String, List or WebElement. Or null (following Selenium's JavascriptExecutor Javadoc)

    Attributes
    protected
    Definition Classes
    ScriptDsl
  40. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  41. def frame(element: Element): FrameElementTarget

    This method supports switching to a frame by element in PageObject DSL.

    This method supports switching to a frame by element in PageObject DSL.

    element

    Element which is contained in the frame to switch to

    returns

    a FrameElementTarget instance

    Attributes
    protected
    Definition Classes
    WindowDsl
  42. def frame(element: WebElement): FrameWebElementTarget

    This method supports switching to a frame by web element in PageObject DSL.

    This method supports switching to a frame by web element in PageObject DSL.

    element

    WebElement which is contained in the frame to switch to

    returns

    a FrameWebElementTarget instance

    Attributes
    protected
    Definition Classes
    WindowDsl
  43. def frame(nameOrId: String): FrameNameOrIdTarget

    This method supports switching to a frame by name or ID in PageObject DSL.

    This method supports switching to a frame by name or ID in PageObject DSL.

    This class is enables the following syntax:

    switch to frame("name")
    ^
    

    nameOrId

    name or ID of the frame to switch to

    returns

    a FrameNameOrIdTarget instance

    Attributes
    protected
    Definition Classes
    WindowDsl
  44. def frame(index: Int): FrameIndexTarget

    This method supports switching to a frame by index in PageObject DSL.

    This method supports switching to a frame by index in PageObject DSL.

    This class is enables the following syntax:

    switch to frame(0)
    ^
    

    index

    the index of frame to switch to

    returns

    a FrameIndexTarget instance

    Attributes
    protected
    Definition Classes
    WindowDsl
  45. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  46. val go: Go.type

    Attributes
    protected
    Definition Classes
    NavigationDsl
  47. def goBack()(implicit driver: WebDriver): Unit

    Go back to previous page.

    Go back to previous page.

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    NavigationDsl
  48. def goForward()(implicit driver: WebDriver): Unit

    Go forward to next page.

    Go forward to next page.

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    NavigationDsl
  49. def goTo(page: UrlPage)(implicit driver: WebDriver): Unit

    Sends the browser to the URL contained in the passed Page object.

    Sends the browser to the URL contained in the passed Page object.

    Here's an example:

    goTo(homePage)
    

    page

    the Page object containing the URL to which to send the browser

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    NavigationDsl
  50. def goTo(url: String)(implicit driver: WebDriver): Unit

    Sends the browser to the passed URL.

    Sends the browser to the passed URL.

    Here's an example:

    goTo("http://www.artima.com")
    

    url

    the URL to which to send the browser

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    NavigationDsl
  51. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  52. def html(tag: String)(query: Query)(implicit reference: OwnPageReference): HtmlLocator

    Attributes
    protected
    Definition Classes
    LocatorDsl
  53. def id(elementId: String): IdQuery

    Returns an ID query.

    Returns an ID query.

    This method enables syntax such as the following:

    private val foo = $(id("foo"))

    id("someid") will select the same elements like cssSelector("#someid"). See also the example in documentation of trait QueryDsl.

    elementId

    the query string for this query.

    Attributes
    protected
    Definition Classes
    QueryDsl
  54. def implicitlyWait(timeout: FiniteDuration)(implicit driver: WebDriver): Unit

    Sets the amount of time the driver should wait when searching for an element that is not immediately present.

    Sets the amount of time the driver should wait when searching for an element that is not immediately present.

    When searching for requested elements, Selenium will poll the page until the requested element (or at least one of multiple requested elements) is found or this "implicit wait" timeout has expired. If the timeout expires, Selenium will throw NoSuchElementException, which will wrap by TestHelper.failTest().

    It is recommended to use PageObject's waitFor construct instead.

    This method invokes manage.timeouts.implicitlyWait on the passed WebDriver. See the documentation of Selenium's WebDriver#Timeouts interface for more information.

    timeout

    the time span to implicitly wait

    driver

    the WebDriver on which to set the implicit wait

    Attributes
    protected
    Definition Classes
    DriverDsl
  55. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  56. def linkText(linkText: String): LinkTextQuery

    Returns a link text query.

    Returns a link text query.

    This method enables syntax such as the following:

    private val foo = $(linkText("foo"))

    See also the example in documentation of trait QueryDsl.

    linkText

    the query string for this query.

    Attributes
    protected
    Definition Classes
    QueryDsl
  57. def monthField(query: Query)(implicit reference: OwnPageReference): MonthFieldLocator

    Finds and returns the first MonthField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a MonthField.

    Finds and returns the first MonthField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a MonthField.

    query

    the Query with which to search

    returns

    the MonthField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  58. def multiSel(query: Query)(implicit reference: OwnPageReference): MultiSelLocator

    Finds and returns the first MultiSel selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a MultiSel.

    Finds and returns the first MultiSel selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a MultiSel.

    query

    the Query with which to search

    returns

    the MultiSel selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  59. def name(elementName: String): NameQuery

    Returns a name query.

    Returns a name query.

    This method enables syntax such as the following:

    private val foo = $(name("foo"))

    See also the example in documentation of trait QueryDsl.

    elementName

    the query string for this query.

    Attributes
    protected
    Definition Classes
    QueryDsl
  60. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  61. final def notify(): Unit

    Definition Classes
    AnyRef
  62. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  63. def numberField(query: Query)(implicit reference: OwnPageReference): NumberFieldLocator

    Finds and returns the first NumberField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a NumberField.

    Finds and returns the first NumberField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a NumberField.

    query

    the Query with which to search

    returns

    the NumberField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  64. def pageSource(implicit driver: WebDriver): String

    Returns the source of the current page.

    Returns the source of the current page.

    This method invokes getPageSource on the passed WebDriver and returns the result.

    driver

    the WebDriver with which to drive the browser

    returns

    the source of the current page

    Attributes
    protected
    Definition Classes
    PageDsl
  65. def pageTitle(implicit driver: WebDriver): String

    Returns the title of the current page, or the empty string if the current page has no title.

    Returns the title of the current page, or the empty string if the current page has no title.

    driver

    the WebDriver with which to drive the browser

    returns

    the current page's title, or the empty string if the current page has no title

    Attributes
    protected
    Definition Classes
    PageDsl
  66. def partialLinkText(partialLinkText: String): PartialLinkTextQuery

    Returns a partial link text query.

    Returns a partial link text query.

    This method enables syntax such as the following:

    private val foo = $(partialLinkText("foo"))

    See also the example in documentation of trait QueryDsl.

    partialLinkText

    the query string for this query.

    Attributes
    protected
    Definition Classes
    QueryDsl
  67. def passwordField(query: Query)(implicit reference: OwnPageReference): PasswordFieldLocator

    Finds and returns the first PasswordField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a PasswordField.

    Finds and returns the first PasswordField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a PasswordField.

    query

    the Query with which to search

    returns

    the PasswordField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  68. def pressKeys(value: String)(implicit driver: WebDriver): Unit

    Press the passed keys to current active element.

    Press the passed keys to current active element.

    value

    keys to press in current active element

    Attributes
    protected
    Definition Classes
    InputDsl
  69. def quit()(implicit driver: WebDriver): Unit

    Close all windows, and exit the driver.

    Close all windows, and exit the driver.

    driver

    the WebDriver on which to quit.

    Attributes
    protected
    Definition Classes
    DriverDsl
  70. def radioButton(query: Query)(implicit reference: OwnPageReference): RadioButtonLocator

    Finds and returns the first RadioButton selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a RadioButton.

    Finds and returns the first RadioButton selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a RadioButton.

    query

    the Query with which to search

    returns

    the RadioButton selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  71. def radioButtonGroup(groupName: String)(implicit driver: WebDriver): RadioButtonGroup

    Finds and returns RadioButtonGroup selected by the specified group name, calls TestHelper.failTest if no element with the specified group name is found, or found any element with the specified group name but not a RadioButton

    Finds and returns RadioButtonGroup selected by the specified group name, calls TestHelper.failTest if no element with the specified group name is found, or found any element with the specified group name but not a RadioButton

    groupName

    the group name with which to search

    driver

    the WebDriver with which to drive the browser

    returns

    the RadioButtonGroup selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  72. def rangeField(query: Query)(implicit reference: OwnPageReference): RangeFieldLocator

    Finds and returns the first RangeField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a RangeField.

    Finds and returns the first RangeField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a RangeField.

    query

    the Query with which to search

    returns

    the RangeField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  73. def reloadPage()(implicit driver: WebDriver): Unit

    Reload the current page.

    Reload the current page.

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    NavigationDsl
  74. def searchField(query: Query)(implicit reference: OwnPageReference): SearchFieldLocator

    Finds and returns the first SearchField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a SearchField.

    Finds and returns the first SearchField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a SearchField.

    query

    the Query with which to search

    returns

    the SearchField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  75. def setScriptTimeout(timeout: FiniteDuration)(implicit driver: WebDriver): Unit

    Sets the amount of time to wait for an asynchronous script to finish execution before throwing an exception.

    Sets the amount of time to wait for an asynchronous script to finish execution before throwing an exception.

    timeout

    the amount of time to wait for an asynchronous script to finish execution before throwing exception

    Attributes
    protected
    Definition Classes
    ScriptDsl
  76. def singleSel(query: Query)(implicit reference: OwnPageReference): SingleSelLocator

    Finds and returns the first SingleSel selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a SingleSel.

    Finds and returns the first SingleSel selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a SingleSel.

    query

    the Query with which to search

    returns

    the SingleSel selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  77. def span(query: Query)(implicit reference: OwnPageReference): HtmlLocator

    Attributes
    protected
    Definition Classes
    LocatorDsl
  78. def submit()(implicit driver: WebDriver): Unit

    Submit the form where current active element belongs to, and throws TestFailedException if current active element is not in a form or underlying WebDriver encounters problem when submitting the form.

    Submit the form where current active element belongs to, and throws TestFailedException if current active element is not in a form or underlying WebDriver encounters problem when submitting the form.

    If this causes the current page to change, this call will block until the new page is loaded.

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    InputDsl
  79. val switch: Switch.type

    Attributes
    protected
    Definition Classes
    SwitchTargetDsl
  80. def switchTo[T](target: SwitchTarget[T])(implicit driver: WebDriver): T

    Switch to the specified SwitchTarget

    Switch to the specified SwitchTarget

    target

    the SwitchTarget to switch to

    driver

    the WebDriver with which to drive the browser

    returns

    instance of specified SwitchTarget's type parameter

    Attributes
    protected
    Definition Classes
    SwitchTargetDsl
  81. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  82. def tagName(tagName: String): TagNameQuery

    Returns a tag name query.

    Returns a tag name query.

    This method enables syntax such as the following:

    private val foo = $(tagName("foo"))

    tagName("div") will select the same elements like cssSelector("div"). See also the example in documentation of trait QueryDsl.

    tagName

    the query string for this query.

    Attributes
    protected
    Definition Classes
    QueryDsl
  83. def telField(query: Query)(implicit reference: OwnPageReference): TelFieldLocator

    Finds and returns the first TelField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a TelField.

    Finds and returns the first TelField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a TelField.

    query

    the Query with which to search

    returns

    the TelField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  84. def textArea(query: Query)(implicit reference: OwnPageReference): TextAreaLocator

    Finds and returns the first TextArea selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a TextArea.

    Finds and returns the first TextArea selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a TextArea.

    query

    the Query with which to search

    returns

    the TextArea selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  85. def textField(query: Query)(implicit reference: OwnPageReference): TextFieldLocator

    Finds and returns the first TextField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a TextField.

    Finds and returns the first TextField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a TextField.

    query

    the Query with which to search

    returns

    the TextField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  86. def timeField(query: Query)(implicit reference: OwnPageReference): TimeFieldLocator

    Finds and returns the first TimeField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a TimeField.

    Finds and returns the first TimeField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a TimeField.

    query

    the Query with which to search

    returns

    the TimeField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  87. def toString(): String

    Definition Classes
    AnyRef → Any
  88. def urlField(query: Query)(implicit reference: OwnPageReference): UrlFieldLocator

    Finds and returns the first UrlField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a UrlField.

    Finds and returns the first UrlField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a UrlField.

    query

    the Query with which to search

    returns

    the UrlField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  89. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  90. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  91. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. def weekField(query: Query)(implicit reference: OwnPageReference): WeekFieldLocator

    Finds and returns the first WeekField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a WeekField.

    Finds and returns the first WeekField selected by the specified Query, calls TestHelper.failTest if element not found or the found element is not a WeekField.

    query

    the Query with which to search

    returns

    the WeekField selected by this query

    Attributes
    protected
    Definition Classes
    LocatorDsl
  93. def window(nameOrHandle: String): WindowTarget

    This class supports switching to a window by name or handle in PageObject DSL.

    This class supports switching to a window by name or handle in PageObject DSL.

    This class is enables the following syntax:

    switch to window(windowHandle)
    ^
    

    nameOrHandle

    name or window handle of the window to switch to

    returns

    a WindowTarget instance

    Attributes
    protected
    Definition Classes
    WindowDsl
  94. def windowHandle(implicit driver: WebDriver): String

    Get an opaque handle to current active window that uniquely identifies it within the implicit driver instance.

    Get an opaque handle to current active window that uniquely identifies it within the implicit driver instance.

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    WindowDsl
  95. def windowHandles(implicit driver: WebDriver): Set[String]

    Get a set of window handles which can be used to iterate over all open windows

    Get a set of window handles which can be used to iterate over all open windows

    driver

    the WebDriver with which to drive the browser

    Attributes
    protected
    Definition Classes
    WindowDsl
  96. def xpath(xpath: String): XPathQuery

    Returns an XPath query.

    Returns an XPath query.

    This method enables syntax such as the following:

    private val foo = $(xpath("foo"))

    See also the example in documentation of trait QueryDsl.

    xpath

    the query string for this query.

    Attributes
    protected
    Definition Classes
    QueryDsl

Inherited from BrowserControlDsl

Inherited from WindowDsl

Inherited from NavigationDsl

Inherited from DriverDsl

Inherited from BrowserPageDsl

Inherited from LocatorDsl

Inherited from ScriptDsl

Inherited from PageDsl

Inherited from QueryDsl

Inherited from InputDsl

Inherited from SwitchTargetDsl

Inherited from CookieDsl

Inherited from ClickDsl

Inherited from AnyRef

Inherited from Any

Ungrouped