Class

org.scalatest.selenium.WebBrowser

LinkTextQuery

Related Doc: package WebBrowser

Permalink

case class LinkTextQuery(queryString: String) extends Query with Product with Serializable

A link text query.

This class enables syntax such as the following:

click on linkText("???")
         ^

queryString

the query string for this query.

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

Instance Constructors

  1. new LinkTextQuery(queryString: String)

    Permalink

    queryString

    the query string for this query.

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. val by: By

    Permalink

    The Selenium By for this query.

    The Selenium By for this query.

    Definition Classes
    LinkTextQueryQuery
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. 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

    Definition Classes
    Query
    Exceptions thrown

    TestFailedException if nothing is selected by this query

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

    Permalink
    Definition Classes
    AnyRef
  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

    Definition Classes
    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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  17. val queryString: String

    Permalink

    the query string for this query.

    the query string for this query.

    Definition Classes
    LinkTextQueryQuery
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. 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

    Definition Classes
    Query
    Exceptions thrown

    TestFailedException if nothing is selected by this query

Inherited from Query

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped