Skip to main content
Module

x/puppeteer/mod.ts>Frame#addScriptTag

A port of puppeteer running on Deno
Latest
method Frame.prototype.addScriptTag
Re-export
import { Frame } from "https://deno.land/x/puppeteer@16.2.0/mod.ts";

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

Parameters

options: FrameAddScriptTagOptions
  • Options for the script.

Returns

Promise<ElementHandle<any>>

a promise that resolves to the added tag when the script's onload event fires or when the script content was injected into the frame.