org.pageobject.core.page

DynamicQueryPageModule

abstract class DynamicQueryPageModule extends PageModule with ElementPageModule

Use this class if you want to create a PageModule chained to a Query.

It is required that the given Query will only return one Element, otherwise an Exception will be thrown.

If you want to create a list of PageModules, for every Element returned by Query, use PageBase.modules, implemented by PageObject and PageModule.

This class will requery the element every time it is accessed. Also see FixedQueryPageModule.

Example:   class FooterModule(implicit parent: ParentPageReference) extends DynamicQueryPageModule(IdQuery("footer"))

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DynamicQueryPageModule
  2. ElementPageModule
  3. PageModule
  4. PageBase
  5. OwnPageReference
  6. PageReference
  7. DriverProvider
  8. BrowserPageDsl
  9. LocatorDsl
  10. ScriptDsl
  11. PageDsl
  12. QueryDsl
  13. InputDsl
  14. SwitchTargetDsl
  15. CookieDsl
  16. ClickDsl
  17. AnyRef
  18. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DynamicQueryPageModule(pageReferenceQuery: Query)(implicit parent: ParentPageReference)

    pageReferenceQuery

    A Query to execute to extract the Element

    parent

    implicit reference to the parent PageObject or PageModule

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 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
  21. 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
  22. val cookies: Cookies.type

    Attributes
    protected
    Definition Classes
    CookieDsl
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. val delete: DeleteCookie.type

    Attributes
    protected
    Definition Classes
    CookieDsl
  29. 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
  30. 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
  31. def div(query: Query)(implicit reference: OwnPageReference): HtmlLocator

    Attributes
    protected
    Definition Classes
    LocatorDsl
  32. def element: Element

    The Element this PageModule was chained to.

    The Element this PageModule was chained to.

    Attributes
    protected
    Definition Classes
    DynamicQueryPageModuleElementPageModule
  33. 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
  34. 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
  35. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  37. 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
  38. 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
  39. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  40. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  41. def hashCode(): Int

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

    Attributes
    protected
    Definition Classes
    LocatorDsl
  43. 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
  44. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  45. 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
  46. def modules[T <: ElementPageModule](query: Query, factory: (Element) ⇒ T): Seq[T]

    Creates a Seq of ElementPageModules, one module for each Element returned by Query.

    Creates a Seq of ElementPageModules, one module for each Element returned by Query.

    Example:   def todos = modules(xpath("li"), TodoEntryModule(_))

    T

    the Type of the ElementPageModule

    query

    the query to execute

    factory

    A function returning a ElementPageModule for the given Element.

    returns

    A Seq of created ElementPageModules, can be empty.

    Attributes
    protected
    Definition Classes
    PageBase
  47. 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
  48. 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
  49. 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
  50. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  53. 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
  54. implicit val ownPageReference: OwnPageReference

    Attributes
    protected
    Definition Classes
    PageModule
  55. val pageReferenceQuery: Query

    A Query to execute to extract the Element

  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. def rootElement: Option[Element]

    If you use a Locator in this PageModule, the Locator will only find child elements of this element.

    If you use a Locator in this PageModule, the Locator will only find child elements of this element.

    returns

    Element containg the PageModule

    Attributes
    protected[org.pageobject]
    Definition Classes
    ElementPageModulePageModulePageReference
  65. 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
  66. 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
  67. 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
  68. def span(query: Query)(implicit reference: OwnPageReference): HtmlLocator

    Attributes
    protected
    Definition Classes
    LocatorDsl
  69. 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
  70. val switch: Switch.type

    Attributes
    protected
    Definition Classes
    SwitchTargetDsl
  71. 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
  72. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. def toString(): String

    Definition Classes
    AnyRef → Any
  79. 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
  80. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  83. implicit def webDriver: WebDriver

    Attributes
    protected[org.pageobject]
    Definition Classes
    PageModuleDriverProvider
  84. 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
  85. 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 ElementPageModule

Inherited from PageModule

Inherited from PageBase

Inherited from OwnPageReference

Inherited from PageReference

Inherited from DriverProvider

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