Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
c

RenderedPage

class RenderedPage

A response and semantic view of its Jsoup-parsed HTML.

Defined by scalive.testing.RenderedPage. View source (scalive/testing/src/scalive/testing/DisconnectedRender.scala:72-125)

Methods4

followSeeOther

def followSeeOther[R](routes: zio.http.Routes[R, Nothing]): zio.ZIO[R, Throwable, testing.RenderedPage]

Follows this response's local 303 See Other location with a GET request.

Cookies accumulated by the preceding request flow are included. Other redirect statuses and external locations fail explicitly because this serverless harness cannot reproduce their browser or network semantics.

Defined by scalive.testing.RenderedPage.followSeeOther. View source (scalive/testing/src/scalive/testing/DisconnectedRender.scala:111-124)

form

def form(query: testing.FormQuery = ...): Either[testing.FormQueryError, testing.RenderedForm]

Selects exactly one form matching query.

Defined by scalive.testing.RenderedPage.form. View source (scalive/testing/src/scalive/testing/DisconnectedRender.scala:94-103)

forms

def forms: Vector[testing.RenderedForm]

Returns every parsed form element in DOM order.

Defined by scalive.testing.RenderedPage.forms. View source (scalive/testing/src/scalive/testing/DisconnectedRender.scala:88-91)

text

def text: String

Returns the parsed document's decoded, combined text with whitespace normalized by Jsoup.

Defined by scalive.testing.RenderedPage.text. View source (scalive/testing/src/scalive/testing/DisconnectedRender.scala:85-85)

Values2

html

val html: String

The complete decoded response body before Jsoup parsing.

Defined by scalive.testing.RenderedPage.html. View source (scalive/testing/src/scalive/testing/DisconnectedRender.scala:82-82)

response

val response: zio.http.Response

The route response with its body replaced by a replayable body containing html.

Defined by scalive.testing.RenderedPage.response. View source (scalive/testing/src/scalive/testing/DisconnectedRender.scala:79-79)