mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
3.2 KiB
3.2 KiB
Home > puppeteer > Protocol > DOMSnapshot > DocumentSnapshot
Protocol.DOMSnapshot.DocumentSnapshot interface
Document snapshot.
Signature:
export interface DocumentSnapshot
Properties
Property | Type | Description |
---|---|---|
baseURL | StringIndex | Base URL that Document or FrameOwner node uses for URL completion. |
contentHeight | number | Document content height. |
contentLanguage | StringIndex | Contains the document's content language. |
contentWidth | number | Document content width. |
documentURL | StringIndex | Document URL that Document or FrameOwner node points to. |
encodingName | StringIndex | Contains the document's character set encoding. |
frameId | StringIndex | Frame ID for frame owner elements and also for the document node. |
layout | LayoutTreeSnapshot | The nodes in the layout tree. |
nodes | NodeTreeSnapshot | A table with dom nodes. |
publicId | StringIndex | DocumentType node's publicId. |
scrollOffsetX | number | Horizontal scroll offset. |
scrollOffsetY | number | Vertical scroll offset. |
systemId | StringIndex | DocumentType node's systemId. |
textBoxes | TextBoxSnapshot | The post-layout inline text nodes. |
title | StringIndex | Document title. |