getFlattenedDocument
suspend fun getFlattenedDocument(args: DOM.GetFlattenedDocumentParameter, mode: CommandMode = CommandMode.DEFAULT): DOM.GetFlattenedDocumentReturn
Deprecated
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.
suspend fun getFlattenedDocument(depth: Int? = null, pierce: Boolean? = null): DOM.GetFlattenedDocumentReturn
Deprecated
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.
Parameters
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 subtree (default is false).