The Selenium By
for this query.
The Selenium By
for this query.
The query string for this query.
The query string for this query.
For example, the query string for id("q")
is "q"
.
Returns the first Element
selected by this query, or throws TestFailedException
if no Element
is selected.
Returns the first Element
selected by this query, or throws TestFailedException
if no Element
is selected.
The class of the Element
returned will be a subtype of Element
if appropriate.
For example, if this query selects a text field, the class of the returned Element
will
be TextField
.
the WebDriver
with which to drive the browser
the Element
selected by this query
TestFailedException
if nothing is selected by this query
Returns an Iterator
over all Element
s selected by this query.
Returns an Iterator
over all Element
s selected by this query.
The class of the Element
s produced by the returned Iterator
will be a
subtypes of Element
if appropriate. For example, if an Element
representing
a text field is returned by the Iterator
, the class of the returned Element
will
be TextField
.
If no Elements
are selected by this query, this method will return an empty Iterator
will be returned.
the WebDriver
with which to drive the browser
the Iterator
over all Element
s selected by this query
Returns the first Element
selected by this query, wrapped in a Some
, or None
if no Element
is selected.
Returns the first Element
selected by this query, wrapped in a Some
, or None
if no Element
is selected.
The class of the Element
returned will be a subtype of Element
if appropriate.
For example, if this query selects a text field, the class of the returned Element
will
be TextField
.
the WebDriver
with which to drive the browser
the Element
selected by this query, wrapped in a Some
, or None
if
no Element
is selected
Returns the first WebElement
selected by this query, or throws TestFailedException
if no WebElement
is selected.
Returns the first WebElement
selected by this query, or throws TestFailedException
if no WebElement
is selected.
the WebDriver
with which to drive the browser
the WebElement
selected by this query
TestFailedException
if nothing is selected by this query
This trait is part of ScalaTest's Selenium DSL. Please see the documentation for
WebBrowser
for an overview of the Selenium DSL.Subclasses of this trait define different ways of querying for elements, enabling syntax such as the following:
click on id("q") ^