pl.wendigo.chrome.domain.dom / RequestChildNodesRequest

RequestChildNodesRequest

data class RequestChildNodesRequest (source)

Represents request frame that can be used with DOM.requestChildNodes method call.

Requests that children of the node with given id are returned to the caller in form of setChildNodes events where not only immediate children are retrieved, but all children down to the specified depth.

Constructors

<init>

RequestChildNodesRequest(nodeId: NodeId, depth: Int? = null, pierce: Boolean? = null)

Represents request frame that can be used with DOM.requestChildNodes method 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.

nodeId

val nodeId: NodeId

Id of the node to get children for.

pierce

val pierce: Boolean?

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