GetFlattenedDocumentRequest

data class GetFlattenedDocumentRequest(depth: Int?, pierce: Boolean?)

Represents request frame that can be used with DOM#getFlattenedDocument operation call.

Returns the root DOM node (and optionally the subtree) to the caller. Deprecated, as it is not designed to work well with the rest of the DOM agent. Use DOMSnapshot.captureSnapshot instead.

See also

Constructors

GetFlattenedDocumentRequest
Link copied to clipboard
fun GetFlattenedDocumentRequest(depth: Int? = null, pierce: Boolean? = null)

Properties

depth
Link copied to clipboard
val depth: Int? = null
The maximum depth at which children should be retrieved, defaults to 1.
pierce
Link copied to clipboard
val pierce: Boolean? = null
Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).

Sources

jvm source
Link copied to clipboard