pl.wendigo.chrome.api.dom / GetDocumentRequest

GetDocumentRequest

data class GetDocumentRequest (source)

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

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

Link
DOM#getDocument method documentation.

See Also

DOMOperations.getDocument

Constructors

<init>

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

Represents request frame that can be used with DOM#getDocument 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).