org.pageobject.core.api

SingleSel

case class SingleSel(factory: ElementFactory) extends AbstractSel with Product with Serializable

This class is part of the PageObject DSL.

This class enables syntax such as the following:

singleSel.clear()

factory

the ElementFactory representing a single selection list

Linear Supertypes
Serializable, Serializable, Product, Equals, AbstractSel, Element, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SingleSel
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AbstractSel
  7. Element
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SingleSel(factory: ElementFactory)

    factory

    the ElementFactory representing a single selection list

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def attribute(name: String): Option[String]

    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
  8. def clear(): Unit

    Clears this element.

    Clears this element.

    Definition Classes
    Element
  9. def click(): Unit

    Clicks this element.

    Clicks this element.

    Definition Classes
    Element
  10. def clickAfterAnimation(duration: FiniteDuration, count: Int): Unit

    Clicks this element after animation has finished.

    Clicks this element after animation has finished.

    Detects the location of the Element to click and waits duration. After this the location is checked again. The click is only processed if the location and size was not modified. AssertionError is thrown otherwise.

    Definition Classes
    Element
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def css(name: String): Option[String]

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

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

    This method invokes getCssValue 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
  13. final def eq(arg0: AnyRef): Boolean

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

    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
  15. val factory: ElementFactory

    the ElementFactory representing a single selection list

    the ElementFactory representing a single selection list

    Definition Classes
    SingleSelElement
  16. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  18. def hasFocus: Boolean

    Definition Classes
    Element
  19. def hashCode(): Int

    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
  20. def isDisplayed: Boolean

    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
  21. def isEnabled: Boolean

    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
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. val isMulti: Boolean

    Definition Classes
    AbstractSel
  24. def isSelected: Boolean

    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
  25. def location: Point

    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
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def options: Map[String, Element]

    Definition Classes
    AbstractSel
  30. def rect: Rect

    The XY location and width/height of this Element.

    The XY location and width/height of this Element.

    This invokes getRect on the underlying WebElement.

    returns

    the location and size of this element on the page

    Definition Classes
    Element
  31. def retry[T](retryOn: (Throwable) ⇒ Boolean*)(what: ⇒ T): T

    Attributes
    protected
    Definition Classes
    Element
  32. def select: Select

    Attributes
    protected
    Definition Classes
    AbstractSel
  33. def selection: Option[String]

    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

  34. def sendKeys(value: String): Unit

    Send keys to the Element.

    Send keys to the Element.

    value

    the keys to send

    Definition Classes
    Element
  35. def size: Dimension

    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
  36. def submit(): Unit

    Submits the current form.

    Submits the current form.

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

    Definition Classes
    AnyRef
  38. def tagName: String

    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
  39. def text: String

    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
  40. def toString(): String

    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
  41. def underlying: WebElement

    Attributes
    protected[org.pageobject]
    Definition Classes
    Element
  42. def value: String

    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

    Definition Classes
    SingleSelElement
  43. def value_=(value: String): Unit

    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

    Definition Classes
    SingleSelElement
  44. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. def webElement: WebElement

    webElement can be used to access the underlying selenium WebElement.

    webElement can be used to access the underlying selenium WebElement.

    returns

    the underlying WebElement

    Definition Classes
    Element

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AbstractSel

Inherited from Element

Inherited from AnyRef

Inherited from Any

Ungrouped