org.scalawebtest.core.gauge

Gauge

object Gauge extends HtmlGauge

Annotations
@deprecated
Deprecated

(Since version ScalaWebTest 1.1.0) Please switch to the HtmlGauge object or extend the HtmlGauge trait. The Gauge object will be removed in a future version, for clear disambiguation between HtmlGauge and JsonGauge

Linear Supertypes
HtmlGauge, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Gauge
  2. HtmlGauge
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. implicit class NotFit extends AnyRef

    Definition Classes
    HtmlGauge

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. object doesnt

    Definition Classes
    HtmlGauge
  9. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fit(definition: NodeSeq)(implicit webDriver: WebClientExposingDriver): Unit

    Synonym for Gauge.fits.

    Synonym for Gauge.fits. Use whatever reads better in your current context.

    Definition Classes
    HtmlGauge
  13. def fits(definition: NodeSeq)(implicit webDriver: WebClientExposingDriver): Unit

    Assert that the current document fits the HTML snippet provided as definition for the Gauge.

    Assert that the current document fits the HTML snippet provided as definition for the Gauge.

    Technically the HTML snippet has to be XML. You might have to add some closing tags for this. This XML is then used to create an abstract syntax tree (AST), which is used as gauge definition.

    Overview

    For example:

    fits (<table class="zebra"><tr><td><a href="/path/to/node">something</a></td></tr></table>)

    The current document is expected to fit the provided gauge definition (the NodeSeq/XML parameter of the fits method). The current document may contain additional elements, before the section which fits the gauge. The document may contain additional elements in between the one, resembled in the gauge. Without special markers attributes and text, after being trimmed, have to be equal to the once in the gauge. The only exception is the class attribute. The classes listed in the gauge, are expected to be available on the test node, but order as well as additional classes do not matter.

    The parent child relationships, as well as the order between the elements has to be the same, as in the gauge.

    You may use the following refinements:

    Markers

    @contains

    The marker @contains might be used in scala.xml.Text and attributes of scala.xml.Elem to request that the text or attribute contains the following text, i.e.

    <a href="@contains index">Home</a>

    matches

    <a href="/index.html">Home</a>

    but doesn't match

    <a href="/home.html">Home</a>

    or

    @contains new NEBA version available

    matches

    new NEBA version available since

    but doesn't match

    new neba version available since

    @regex

    The marker @regex might be used in scala.xml.Text and attributes of scala.xml.Elem to request a regex pattern match, i.e.

    <a href="@regex http:\/\/[a-zA-Z]+\.domain.com.*,"></a>

    matches

    <a href="http://my.domain.com/index.html"></a>

    but doesn't match

    <a href="http://my.domain.org/index.html"></a>

    or

    @regex new NEBA version [0-9.]+ available

    matches

    new NEBA Version 4.0.0 available

    but doesn't match

    new NEBA Version 4.0.0-RC1 available
    Definition Classes
    HtmlGauge
  14. final def getClass(): Class[_]

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

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

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

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

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

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

    Definition Classes
    AnyRef
  21. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from HtmlGauge

Inherited from AnyRef

Inherited from Any

Ungrouped