Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method Frame.prototype.addScriptTag
import { Frame } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/common/FrameManager.js";

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

Parameters

  • configure the script to add to the page.

Returns

Promise<ElementHandle>

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.