Static class method used to screenshot a web page and return it as a Document object where the pageContent property is the screenshot encoded in base64.
_screenshot(
url: string,
options: PuppeteerWebBaseLoaderOptions
): Promise<Document<Record<string, any>>>| Name | Type | Description |
|---|---|---|
url* | string | |
options | PuppeteerWebBaseLoaderOptions |