pl.wendigo.chrome.api.dom / GetFlattenedDocumentRequest

GetFlattenedDocumentRequest

data class GetFlattenedDocumentRequest (source)

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

Returns the root DOM node (and optionally the subtree) to the caller.

Link
DOM#getFlattenedDocument method documentation.

See Also

DOMOperations.getFlattenedDocument

Constructors

<init>

GetFlattenedDocumentRequest(depth: Int? = null, pierce: Boolean? = null)

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

Properties

depth

val depth: Int?

The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.

pierce

val pierce: Boolean?

Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).