Trait

org.scalatest.selenium.WebBrowser

Query

Related Doc: package WebBrowser

Permalink

sealed trait Query extends Product with Serializable

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")
         ^

Source
WebBrowser.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Query
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val by: By

    Permalink

    The Selenium By for this query.

    The Selenium By for this query.

  2. abstract def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    Equals
  3. abstract def productArity: Int

    Permalink
    Definition Classes
    Product
  4. abstract def productElement(n: Int): Any

    Permalink
    Definition Classes
    Product
  5. abstract val queryString: String

    Permalink

    The query string for this query.

    The query string for this query.

    For example, the query string for id("q") is "q".

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def element(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Element

    Permalink

    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.

    driver

    the WebDriver with which to drive the browser

    returns

    the Element selected by this query

    Exceptions thrown

    TestFailedException if nothing is selected by this query

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def findAllElements(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Iterator[Element]

    Permalink

    Returns an Iterator over all Elements selected by this query.

    Returns an Iterator over all Elements selected by this query.

    The class of the Elements produced by the returned Iterator will be a subtypes of Element if appropriate. For example, if an Elementrepresenting 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.

    driver

    the WebDriver with which to drive the browser

    returns

    the Iterator over all Elements selected by this query

  11. def findElement(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): Option[Element]

    Permalink

    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.

    driver

    the WebDriver with which to drive the browser

    returns

    the Element selected by this query, wrapped in a Some, or None if no Element is selected

  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  19. def productPrefix: String

    Permalink
    Definition Classes
    Product
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def webElement(implicit driver: WebDriver, pos: Position = implicitly[source.Position]): WebElement

    Permalink

    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.

    driver

    the WebDriver with which to drive the browser

    returns

    the WebElement selected by this query

    Exceptions thrown

    TestFailedException if nothing is selected by this query

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped