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.
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.
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 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 trait is part of the PageObject DSL.
This trait implements helper functions to create Query instances.
trait ExampleModule extends PageModule { // $ -> UntypedLocator, we expect a div or something // linkText -> we select elements by linkText private val foo = $(linkText("foo")) def click(): Unit = { // foo.element is invoked here, // the test will fail if no element (or more then one) is found click on foo } // other example // singleSel -> we expect a single selection dropdown form element // cssSelector -> we select Elements by using a css query private val foo2 = singleSel(cssSelector("#someid .foo")) }