Class

org.scalatest.selenium.WebBrowser

SingleSel

Related Doc: package WebBrowser

Permalink

class SingleSel extends Element

This class is part of ScalaTest's Selenium DSL. Please see the documentation for WebBrowser for an overview of the Selenium DSL.

This class enables syntax such as the following:

singleSel.clear()

Source
WebBrowser.scala
Exceptions thrown

TestFailedExeption if the passed WebElement does not represent a single selection list

Linear Supertypes
Element, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SingleSel
  2. Element
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SingleSel(underlying: WebElement)(implicit pos: Position)

    Permalink

    underlying

    a WebElement representing a single selection list

    Exceptions thrown

    TestFailedExeption if the passed WebElement does not represent a single selection list

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 attribute(name: String): Option[String]

    Permalink

    The attribute value of the given attribute name of this element, wrapped in a Some, or None if no such attribute exists on this Element.

    The attribute value of the given attribute name of this element, wrapped in a Some, or None if no such attribute exists on this Element.

    This method invokes getAttribute on the underlying WebElement, passing in the specified name.

    returns

    the attribute with the given name, wrapped in a Some, else None

    Definition Classes
    Element
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink

    Returns the result of invoking equals on the underlying Element, passing in the specified other object.

    Returns the result of invoking equals on the underlying Element, passing in the specified other object.

    other

    the object with which to compare for equality

    returns

    true if the passed object is equal to this one

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

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

    Permalink

    Returns the result of invoking hashCode on the underlying Element.

    Returns the result of invoking hashCode on the underlying Element.

    returns

    a hash code for this object

    Definition Classes
    Element → AnyRef → Any
  12. def isDisplayed: Boolean

    Permalink

    Indicates whether this Element is displayed.

    Indicates whether this Element is displayed.

    This invokes isDisplayed on the underlying WebElement.

    returns

    true if the element is currently displayed

    Definition Classes
    Element
  13. def isEnabled: Boolean

    Permalink

    Indicates whether this Element is enabled.

    Indicates whether this Element is enabled.

    This invokes isEnabled on the underlying WebElement, which will generally return true for everything but disabled input elements.

    returns

    true if the element is currently enabled

    Definition Classes
    Element
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def isSelected: Boolean

    Permalink

    Indicates whether this Element is selected.

    Indicates whether this Element is selected.

    This method, which invokes isSelected on the underlying WebElement, is relevant only for input elements such as checkboxes, options in a single- or multiple-selection list box, and radio buttons. For any other element it will simply return false.

    returns

    true if the element is currently selected or checked

    Definition Classes
    Element
  16. def location: Point

    Permalink

    The XY location of the top-left corner of this Element.

    The XY location of the top-left corner of this Element.

    This invokes getLocation on the underlying WebElement.

    returns

    the location of the top-left corner of this element on the page

    Definition Classes
    Element
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def selection: Option[String]

    Permalink

    Returns the value of this single selection list, wrapped in a Some, or None, if this single selection list has no currently selected value.

    Returns the value of this single selection list, wrapped in a Some, or None, if this single selection list has no currently selected value.

    returns

    the value of this single selection list, wrapped in a Some, else None

  21. def size: Dimension

    Permalink

    The width/height size of this Element.

    The width/height size of this Element.

    This invokes getSize on the underlying WebElement.

    returns

    the size of the element on the page

    Definition Classes
    Element
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def tagName: String

    Permalink

    The tag name of this element.

    The tag name of this element.

    This method invokes getTagName on the underlying WebElement. Note it returns the name of the tag, not the value of the of the name attribute. For example, it will return will return "input" for the element <input name="city" />, not "city".

    returns

    the tag name of this element

    Definition Classes
    Element
  24. def text: String

    Permalink

    Returns the visible (i.e., not hidden by CSS) text of this element, including sub-elements, without any leading or trailing whitespace.

    Returns the visible (i.e., not hidden by CSS) text of this element, including sub-elements, without any leading or trailing whitespace.

    returns

    the visible text enclosed by this element, or an empty string, if the element encloses no visible text

    Definition Classes
    Element
  25. def toString(): String

    Permalink

    Returns the result of invoking toString on the underlying Element.

    Returns the result of invoking toString on the underlying Element.

    returns

    a string representation of this object

    Definition Classes
    Element → AnyRef → Any
  26. val underlying: WebElement

    Permalink

    a WebElement representing a single selection list

    a WebElement representing a single selection list

    Definition Classes
    SingleSelElement
  27. def value(implicit pos: Position): String

    Permalink

    Gets this single selection list's selected value, or throws TestFailedException if no value is currently selected.

    Gets this single selection list's selected value, or throws TestFailedException if no value is currently selected.

    returns

    the single selection list's value

    Exceptions thrown

    TestFailedException if the single selection list has no selected value

  28. def value_=(value: String)(implicit pos: Position): Unit

    Permalink

    Sets this single selection list's value to the passed value.

    Sets this single selection list's value to the passed value.

    value

    the new value

    Exceptions thrown

    TestFailedException if the passed value does not match not one of the single selection list's values

  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Element

Inherited from AnyRef

Inherited from Any

Ungrouped