Latest
method Page.prototype.addScriptTag
import { Page } from "https://dotland.deno.dev/x/puppeteer@16.2.0/vendor/puppeteer-core/puppeteer/types.d.ts";

Adds a <script> tag into the page with the desired URL or content.

Parameters

options: { url?: string; path?: string; content?: string; type?: string; id?: string; }

Returns

Promise<ElementHandle<any>>

Promise which resolves to the added tag when the script's onload fires or when the script content was injected into frame.