Home > puppeteer > Protocol > DOM > GetFlattenedDocumentRequest > depth
Protocol.DOM.GetFlattenedDocumentRequest.depth property
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.
Signature:
depth?: integer;