Class

org.pageobject.core.api

TextArea

Related Doc: package api

Permalink

case class TextArea(factory: ElementFactory) extends Element with FixedTagName with Product with Serializable

This class is part of the PageObject DSL.

This class enables syntax such as the following:

textArea("q").value should be ("Cheese!")

factory

the ElementFactory representing a text area

Linear Supertypes
Serializable, Serializable, Product, Equals, FixedTagName, Element, ScriptDsl, WaitFor, DurationDsl, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TextArea
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. FixedTagName
  7. Element
  8. ScriptDsl
  9. WaitFor
  10. DurationDsl
  11. Logging
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TextArea(factory: ElementFactory)

    Permalink

    factory

    the ElementFactory representing a text area

Type Members

  1. type Duration = scala.concurrent.duration.Duration

    Permalink
    Definition Classes
    DurationDsl
  2. type FiniteDuration = scala.concurrent.duration.FiniteDuration

    Permalink
    Definition Classes
    DurationDsl
  3. type TimeUnit = java.util.concurrent.TimeUnit

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl

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 val DAYS: java.util.concurrent.TimeUnit(DAYS)

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  5. final val HOURS: java.util.concurrent.TimeUnit(HOURS)

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  6. final val MICROSECONDS: java.util.concurrent.TimeUnit(MICROSECONDS)

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  7. final val MILLISECONDS: java.util.concurrent.TimeUnit(MILLISECONDS)

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  8. final val MINUTES: java.util.concurrent.TimeUnit(MINUTES)

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  9. final val NANOSECONDS: java.util.concurrent.TimeUnit(NANOSECONDS)

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  10. final val SECONDS: java.util.concurrent.TimeUnit(SECONDS)

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. 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
  13. def clear(): Unit

    Permalink

    Clears this element.

    Clears this element.

    Definition Classes
    Element
  14. def click(): Unit

    Permalink

    Clicks this element.

    Clicks this element.

    Definition Classes
    Element
  15. def clickAfterAnimation(patienceConfig: PatienceConfig): Unit

    Permalink

    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
  16. def clone(): AnyRef

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

    Permalink

    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
  18. def debug(msg: ⇒ String, throwable: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  19. def debug(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  20. implicit def doubleMult(d: Double): DoubleMult

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  21. implicit def durationDouble(n: Double): DurationConversions

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  22. implicit def durationInt(n: Int): DurationConversions

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  23. implicit def durationLong(n: Long): DurationConversions

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  24. implicit def durationToPair(d: Duration): (Long, TimeUnit)

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  25. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. 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
  27. def error(msg: ⇒ String, throwable: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  28. def error(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  29. def executeAsyncScript(script: String, args: AnyRef*)(implicit driver: WebDriver): Any

    Permalink

    Executes an asynchronous piece of JavaScript in the context of the currently selected frame or window.

    Executes an asynchronous piece of JavaScript in the context of the currently selected frame or window.

    Unlike executing synchronous JavaScript, scripts executed with this method must explicitly signal they are finished by invoking the provided callback. This callback is always injected into the executed function as the last argument.

    The first argument passed to the callback function will be used as the script's result. This value will be handled as follows:

    • For an HTML element, this method returns a WebElement
    • For a number, a Long is returned
    • For a boolean, a Boolean is returned
    • For all other cases, a String is returned
    • For an array, return a List<Object> with each object following the rules above. We support nested lists
    • Unless the value is null or there is no return value, in which null is returned

    Script arguments must be a number, boolean, String, WebElement, or a List of any combination of these. An exception will be thrown if the arguments do not meet these criteria. The arguments will be made available to the JavaScript via the "arguments" variable. (Note that although this behavior is specified by Selenium's JavascriptExecutor Javadoc, it may still be possible for the underlying JavascriptExecutor implementation to return an objects of other types. For example, HtmlUnit has been observed to return a java.util.Map for a Javascript object.)

    script

    the JavaScript to execute

    args

    the arguments to the script, may be empty

    returns

    One of Boolean, Long, String, List, WebElement, or null (following Selenium's JavascriptExecutor Javadoc)

    Attributes
    protected
    Definition Classes
    ScriptDsl
  30. def executeScript[T](script: String, args: AnyRef*)(implicit driver: WebDriver): Any

    Permalink

    Executes JavaScript in the context of the currently selected frame or window.

    Executes JavaScript in the context of the currently selected frame or window. The script fragment provided will be executed as the body of an anonymous function.

    Within the script, you can use document to refer to the current document. Local variables will not be available once the script has finished executing, but global variables will.

    To return a value (e.g. if the script contains a return statement), then the following steps will be taken:

    • For an HTML element, this method returns a WebElement
    • For a decimal, a Double is returned
    • For a non-decimal number, a Long is returned
    • For a boolean, a Boolean is returned
    • For all other cases, a String is returned
    • For an array, return a List<Object> with each object following the rules above. We support nested lists
    • Unless the value is null or there is no return value, in which null is returned

    Script arguments must be a number, boolean, String, WebElement, or a List of any combination of these. An exception will be thrown if the arguments do not meet these criteria. The arguments will be made available to the JavaScript via the "arguments" variable. (Note that although this behavior is specified by Selenium's JavascriptExecutor Javadoc, it may still be possible for the underlying JavascriptExecutor implementation to return an objects of other types. For example, HtmlUnit has been observed to return a java.util.Map for a Javascript object.)

    script

    the JavaScript to execute

    args

    the arguments to the script, may be empty

    returns

    One of Boolean, Long, String, List or WebElement. Or null (following Selenium's JavascriptExecutor Javadoc)

    Attributes
    protected
    Definition Classes
    ScriptDsl
  31. val factory: ElementFactory

    Permalink

    the ElementFactory representing a text area

    the ElementFactory representing a text area

    Definition Classes
    TextAreaElement
  32. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. def fixedTagName: String

    Permalink
    Definition Classes
    TextAreaFixedTagName
  34. final val fromNow: scala.concurrent.duration.fromNow.type

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  35. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  36. def hasFocus: Boolean

    Permalink
    Definition Classes
    Element
  37. 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
  38. def info(msg: ⇒ String, throwable: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  39. def info(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  40. implicit def intMult(i: Int): IntMult

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  41. 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
  42. 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
  43. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  44. 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
  45. 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
  46. def log(level: LogLevel, msg: ⇒ String, throwable: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  47. def log(level: LogLevel, msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  48. implicit def longMult(l: Long): LongMult

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  49. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  52. implicit def pairIntToDuration(p: (Int, TimeUnit)): Duration

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  53. implicit def pairLongToDuration(p: (Long, TimeUnit)): FiniteDuration

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  54. def rect: Rect

    Permalink

    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
  55. def retry[T](description: String, retryOn: (Throwable) ⇒ Boolean*)(what: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    Element
  56. def scrollIntoView(offset: Int = 0): Unit

    Permalink

    scroll the element into the view

    scroll the element into the view

    Definition Classes
    Element
  57. def sendKeys(value: String): Unit

    Permalink

    Send keys to the Element.

    Send keys to the Element.

    value

    the keys to send

    Definition Classes
    Element
  58. def setScriptTimeout(timeout: scala.concurrent.duration.FiniteDuration)(implicit driver: WebDriver): Unit

    Permalink

    Sets the amount of time to wait for an asynchronous script to finish execution before throwing an exception.

    Sets the amount of time to wait for an asynchronous script to finish execution before throwing an exception.

    timeout

    the amount of time to wait for an asynchronous script to finish execution before throwing exception

    Attributes
    protected
    Definition Classes
    ScriptDsl
  59. 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
  60. final val span: scala.concurrent.duration.span.type

    Permalink
    Attributes
    protected
    Definition Classes
    DurationDsl
  61. def submit(): Unit

    Permalink

    Submits the current form.

    Submits the current form.

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

    Permalink
    Definition Classes
    AnyRef
  63. final def tagName: String

    Permalink
    Definition Classes
    FixedTagName
  64. 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
  65. 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
  66. def trace(msg: ⇒ String, throwable: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  67. def trace(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  68. def underlying: WebElement

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

    Permalink

    Gets this field's value.

    Gets this field's value.

    This method invokes getAttribute("value") on the underlying WebElement.

    returns

    the field's value

    Definition Classes
    Element
  70. def value_=(value: String): Unit

    Permalink

    Sets this field's value.

    Sets this field's value.

    value

    the new value

    Definition Classes
    Element
  71. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  74. def waitFor[T](description: String, config: PatienceConfig)(fun: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    WaitFor
  75. def waitFor[T](description: String, timeout: FiniteDuration, interval: FiniteDuration)(fun: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    WaitFor
  76. def warn(msg: ⇒ String, throwable: ⇒ Throwable): Unit

    Permalink
    Definition Classes
    Logging
  77. def warn(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  78. def webElement: WebElement

    Permalink

    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
  79. def withPatience[T](map: PatienceMap)(fun: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    WaitFor
  80. def withPatience[T](config: (PatienceConfig, PatienceConfig)*)(fun: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    WaitFor

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from FixedTagName

Inherited from Element

Inherited from ScriptDsl

Inherited from WaitFor

Inherited from DurationDsl

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped