case class ClassNameQuery(queryString: String) extends Query with Product with Serializable
A class name query.
This class enables syntax such as the following:
click on className("???")
^
- queryString
the query string for this query.
- Source
- WebBrowser.scala
- Alphabetic
- By Inheritance
- ClassNameQuery
- Query
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ClassNameQuery(queryString: String)
- queryString
the query string for this query.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
by: By
- Definition Classes
- ClassNameQuery → Query
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
element(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Element
Returns the first
Element
selected by this query, or throwsTestFailedException
if noElement
is selected.Returns the first
Element
selected by this query, or throwsTestFailedException
if noElement
is selected.The class of the
Element
returned will be a subtype ofElement
if appropriate. For example, if this query selects a text field, the class of the returnedElement
will beTextField
.- driver
the
WebDriver
with which to drive the browser- returns
the
Element
selected by this query
- Definition Classes
- Query
- Exceptions thrown
TestFailedException
if nothing is selected by this query
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findAllElements(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Iterator[Element]
Returns an
Iterator
over allElement
s selected by this query.Returns an
Iterator
over allElement
s selected by this query.The class of the
Element
s produced by the returnedIterator
will be a subtypes ofElement
if appropriate. For example, if anElement
representing a text field is returned by theIterator
, the class of the returnedElement
will beTextField
.If no
Elements
are selected by this query, this method will return an emptyIterator
will be returned.- driver
the
WebDriver
with which to drive the browser- returns
the
Iterator
over allElement
s selected by this query
- Definition Classes
- Query
-
def
findElement(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Option[Element]
Returns the first
Element
selected by this query, wrapped in aSome
, orNone
if noElement
is selected.Returns the first
Element
selected by this query, wrapped in aSome
, orNone
if noElement
is selected.The class of the
Element
returned will be a subtype ofElement
if appropriate. For example, if this query selects a text field, the class of the returnedElement
will beTextField
.- driver
the
WebDriver
with which to drive the browser- returns
the
Element
selected by this query, wrapped in aSome
, orNone
if noElement
is selected
- Definition Classes
- Query
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
val
queryString: String
- Definition Classes
- ClassNameQuery → Query
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
webElement(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): WebElement
Returns the first
WebElement
selected by this query, or throwsTestFailedException
if noWebElement
is selected.Returns the first
WebElement
selected by this query, or throwsTestFailedException
if noWebElement
is selected.- driver
the
WebDriver
with which to drive the browser- returns
the
WebElement
selected by this query
- Definition Classes
- Query
- Exceptions thrown
TestFailedException
if nothing is selected by this query