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.
the query string for this query.
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.
the query string for this query.
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.
the query string for this query.
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.
the query string for this query.
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(_))
the Type of the ElementPageModule
the query to execute
A function returning a ElementPageModule for the given Element.
A Seq of created ElementPageModules, can be empty.
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.
the query string for this query.
The parent PageModule or PageObject
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.
the query string for this query.
Returns the Element containg the PageModule.
Returns the Element containg the PageModule. PageObjects will always return None.
Element containg the PageModule
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.
the query string for this query.
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.
the query string for this query.
This is a PageObject to detect Browser Error Pages.
It is used as a default for UnexpectedPages to cancel a test when a BrowserErrorPage was found.