RenderedElement
class RenderedElementImmutable values captured from one selected rendered element.
Parameters
tagNameThe Jsoup-normalized HTML tag name.
textDecoded, combined text with whitespace handled according to Jsoup's HTML tag rules.
valueThe same Jsoup value used by value: textarea text with outer whitespace trimmed and internal whitespace preserved, otherwise the element's own
valueattribute or an empty string. Does not infer selected options, checkbox defaults, native-input sanitization, or browser submission values.
Defined by scalive.testing.RenderedElement. View source (scalive/testing/src/scalive/testing/RenderedHtml.scala:121-145)
Methods4
attribute
def attribute(name: String): Option[String]Returns a decoded, unresolved attribute value with a case-insensitive HTML name lookup. Preserves absent versus present-empty and does not synthesize absolute URL attributes.
Defined by scalive.testing.RenderedElement.attribute. View source (scalive/testing/src/scalive/testing/RenderedHtml.scala:131-131)
classes
def classes: Set[String]The element's classes, from its class attribute.
Defined by scalive.testing.RenderedElement.classes. View source (scalive/testing/src/scalive/testing/RenderedHtml.scala:134-135)
selectAll
def selectAll(selector: String): Either[testing.HtmlQueryError, Vector[testing.RenderedElement]]Selects all matching elements inside this one, in document order, excluding the element itself.
Defined by scalive.testing.RenderedElement.selectAll. View source (scalive/testing/src/scalive/testing/RenderedHtml.scala:144-145)
selectOne
def selectOne(selector: String): Either[testing.HtmlQueryError, testing.RenderedElement]Selects exactly one element inside this one, reporting missing or ambiguous matches.
Defined by scalive.testing.RenderedElement.selectOne. View source (scalive/testing/src/scalive/testing/RenderedHtml.scala:138-139)
Values3
tagName
val tagName: StringThe Jsoup-normalized HTML tag name.
Defined by scalive.testing.RenderedElement.tagName. View source (scalive/testing/src/scalive/testing/RenderedHtml.scala:122-122)
text
val text: StringDecoded, combined text with whitespace handled according to Jsoup's HTML tag rules.
Defined by scalive.testing.RenderedElement.text. View source (scalive/testing/src/scalive/testing/RenderedHtml.scala:123-123)
value
val value: StringThe same Jsoup value used by value: textarea text with outer whitespace
trimmed and internal whitespace preserved, otherwise the element's own value attribute or an
empty string. Does not infer selected options, checkbox defaults, native-input sanitization,
or browser submission values.
Defined by scalive.testing.RenderedElement.value. View source (scalive/testing/src/scalive/testing/RenderedHtml.scala:124-124)