Skip to main content
interface Protocol.Page.AddScriptToEvaluateOnNewDocumentRequest
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { AddScriptToEvaluateOnNewDocumentRequest } = Protocol.Page;

Properties

source: string
optional
worldName: string

If specified, creates an isolated world with the given name and evaluates given script in it. This world name will be used as the ExecutionContextDescription::name when the corresponding event is emitted.

optional
includeCommandLineAPI: boolean

Specifies whether command line API should be available to the script, defaults to false.