Skip to main content
Module

x/puppeteer_plus/mod.ts>Protocol.DOMSnapshot.DocumentSnapshot

Deno port of puppeteer base on latest TypeScript source.
Go to Latest
interface Protocol.DOMSnapshot.DocumentSnapshot
import { type Protocol } from "https://deno.land/x/puppeteer_plus@0.14.0/mod.ts";
const { DocumentSnapshot } = Protocol.DOMSnapshot;

Document snapshot.

Properties

documentURL: StringIndex

Document URL that Document or FrameOwner node points to.

title: StringIndex

Document title.

baseURL: StringIndex

Base URL that Document or FrameOwner node uses for URL completion.

contentLanguage: StringIndex

Contains the document's content language.

encodingName: StringIndex

Contains the document's character set encoding.

publicId: StringIndex

DocumentType node's publicId.

systemId: StringIndex

DocumentType node's systemId.

frameId: StringIndex

Frame ID for frame owner elements and also for the document node.

nodes: NodeTreeSnapshot

A table with dom nodes.

layout: LayoutTreeSnapshot

The nodes in the layout tree.

textBoxes: TextBoxSnapshot

The post-layout inline text nodes.

optional
scrollOffsetX: number

Horizontal scroll offset.

optional
scrollOffsetY: number

Vertical scroll offset.

optional
contentWidth: number

Document content width.

optional
contentHeight: number

Document content height.