Object/Class

org.scalawebtest.core.gauge

Gauge

Related Docs: class Gauge | package gauge

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. implicit class NotFit extends AnyRef

    Permalink
    Definition Classes
    HtmlGauge

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

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

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

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

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

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

    Permalink

    Synonym for Gauge.fits.

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

    Definition Classes
    HtmlGauge
  11. def fits(definition: NodeSeq)(implicit webDriver: WebDriver): Unit

    Permalink

    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
  12. final def getClass(): Class[_]

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

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

Inherited from HtmlGauge

Inherited from AnyRef

Inherited from Any

Ungrouped