requestChildNodes
suspend fun requestChildNodes(args: DOM.RequestChildNodesParameter, mode: CommandMode = CommandMode.DEFAULT)
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.
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.
Parameters
nodeId
Id of the node to get children for.
depth
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
Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).