org.pageobject.core.page

PageModule

abstract class PageModule extends BrowserPageDsl with DriverProvider with OwnPageReference with PageBase

A PageModule represents a logical unit inside a PageObject. Speaking of a web site this is a part of elements which are all closely related to each other such as the fields of a login box (username and password) and the button to submit the information in order to log in. Apart from the definition of the elements the PageModule also defines the actions possible within this part of the web site. Therefore access to the web driver is needed. This access is provided by the implicit variable of webDriver which comes from the encapsulating PageObject.

On the technical side a PageModule has a reference to itself which is needed to get access to the elements defined in the module. There is also the parent module (the encapsulating module or page) and the root element. In order to get all children of this PageModule which satisfy a certain definition (in this case the definition has the form of a Query), you can call modules[T <: ElementPageModule](query: Query, factory: Element => T): Seq[T] function.

A PageModule can contain other PageModules and has an implicit reference to the "parent", either a PageObject or a PageModule.

There are 2 special cases for using the PageModule pattern: 1. The PageModule consists only of exactly one Element. If the PageModule is chained to an Element, you should use ElementPageModule insteade of PageModule. 2. The PageModule consists of all Elements returned by a Query. Such a PageModule can be chained to a Query, use QueryPageModule insteade of PageModule.

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

Instance Constructors

  1. new PageModule()(implicit parentPageReference: ParentPageReference)

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 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
  33. 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
  34. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

    Definition Classes
    Any
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. final def ne(arg0: AnyRef): Boolean

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

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

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

    Attributes
    protected
  54. 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
  55. 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
  56. implicit def parent: Some[ParentPageReference]

    returns

    The parent PageModule or PageObject

    Attributes
    protected[org.pageobject]
    Definition Classes
    PageModulePageReference
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. def rootElement: Option[Element]

    Returns the Element containg the PageModule.

    Returns the Element containg the PageModule. PageObjects will always return None.

    returns

    Element containg the PageModule

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

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

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

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

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

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

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

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

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