This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
checkbox("cbx1").select()
the ElementFactory
representing a checkbox
A class name query.
A class name query.
This class enables syntax such as the following:
click on className("???") ^
the query string for this query.
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
colorField("q").value should be ("Cheese!")
the ElementFactory
representing a color field
A CSS selector query.
A CSS selector query.
This class enables syntax such as the following:
click on cssSelector("???") ^
the query string for this query.
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
dateField("q").value should be ("2003-03-01")
the ElementFactory
representing a date field
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
dateTimeField("q").value should be ("2003-03-01T12:13:14")
the ElementFactory
representing a datetime field
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
dateTimeLocalField("q").value should be ("2003-03-01T12:13:14")
the ElementFactory
representing a datetime-local field
Wrapper class for a Selenium WebElement
.
Wrapper class for a Selenium WebElement
. This class provides all possibilities on a WebElement
which are also provided by Selenium. That contains information about the WebElement
like its size,
location or css style but also all user interactions like clicking, filling, submitting etc.
Apart from that there is a special WebElement
class for a lot of different types of elements (the
most common ones). If you are sure about the element type you want to access, you could use the approtiate
case class like DateTimeField
or TextField
. Using these the locator of the element not
only identifies it but also checks if the element's type is as expected. If you're unsure or your web site changes
regularly, you could also use UntypedElement
. In that case the check if the element found matches
the expected type is left out.
This class provides idiomatic Scala access to the services of an underlying WebElement
.
You can access the wrapped WebElement
via the underlying
method.
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
emailField("q").value should be ("[email protected]")
the ElementFactory
representing a email field
The tag name is readonly according to W3C specification.
The tag name is readonly according to W3C specification.
You can use this trait to prevent calling
underlying.getTagName
if you already know the tag name.
An ID query.
An ID query.
This class enables syntax such as the following:
click on id("q") ^
the query string for this query.
An ID query.
An ID query.
This class enables syntax such as the following:
click on id("q") ^
the query string for this query.
A link text query.
A link text query.
This class enables syntax such as the following:
click on linkText("???") ^
the query string for this query.
The Locator locates an Element
due to a Query
.
The Locator locates an Element
due to a Query
. If used there is either the possibility
to get exactly 1 element. In this case the element: E
function should be called. If more than 1
element has to be found (like a list of li items) the elements: Seq[E]
function should be called.
the type of Elements to locate
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
monthField("q").value should be ("2003-04")
the ElementFactory
representing a month field
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
multiSel("select2").clear("option5")
the ElementFactory
representing a multiple selection list
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
multiSel("select2").values += "option5" ^
Instances of this class are returned from the values
method of MultiSel
.
MultiSelOptionSeq
is an immutable IndexedSeq[String]
that wraps an underlying immutable
IndexedSeq[String]
and adds two methods, +
and -
,
to facilitate the +=
syntax for setting additional options of the MultiSel
.
The Scala compiler will rewrite:
multiSel("select2").values += "option5"
To:
multiSel("select2").values = multiSel("select2").values + "option5"
Thus, first a new MultiSelOptionSeq
is created by invoking the +
method on the
MultiSelOptionSeq
returned by values
, and that result is passed
to the values_=
method.
For symmetry, this class also offers a -
method, which can be used to deselect an option, like this:
multiSel("select2").values -= "option5" ^
A name query.
A name query.
This class enables syntax such as the following:
click on name("q") ^
the query string for this query.
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
numberField("q").value should be ("1.3")
the ElementFactory
representing a number field
A partial link text query.
A partial link text query.
This class enables syntax such as the following:
click on partialLinkText("???") ^
the query string for this query.
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
pwdField("q").value should be ("Cheese!")
the ElementFactory
representing a password field
A Custom QueryDsl Example.
A Custom QueryDsl Example.
Example:
case class Tour03GoogleSearchPage() extends PageObject {
object content extends PageModule with QaTagDsl {
private val example = textField(qaTag("exampleQaTag"))
private val list = textField(qaTag("li", "exampleQaTag"))
}
}
A Custom Query Example.
A Custom Query Example.
This is a simple example on how to implement a custom query
This trait is part of the PageObject DSL.
This trait is part of the PageObject DSL.
Subclasses of this trait define different ways of querying for elements, enabling syntax such as the following:
click on id("q") ^
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
radioButton(id("opt1")).value should be ("Option 1!")
the ElementFactory
representing a text area
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
radioButtonGroup("group1").value should be ("Option 2")
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
rangeField("q").value should be ("1.3")
the ElementFactory
representing a range field
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
searchField("q").value should be ("google")
the ElementFactory
representing a search field
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
singleSel.clear()
the ElementFactory
representing a single selection list
A tag name query.
A tag name query.
This class enables syntax such as the following:
click on tagName("???") ^
the query string for this query.
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
telField("q").value should be ("911-911-9191")
the ElementFactory
representing a tel field
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
textArea("q").value should be ("Cheese!")
the ElementFactory
representing a text area
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
textField("q").value should be ("Cheese!")
the ElementFactory
representing a text field
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
timeField("q").value should be ("12:13:14")
the ElementFactory
representing a time field
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
urlField("q").value should be ("http://google.com")
the ElementFactory
representing a url field
This class is part of the PageObject DSL.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
weekField("q").value should be ("1996-W16")
the ElementFactory
representing a week field
An XPath query.
An XPath query.
This class enables syntax such as the following:
click on xpath("???") ^
the query string for this query.
This class is part of the PageObject DSL.
This class enables syntax such as the following:
the
ElementFactory
representing