Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fresh/tests/deps.ts>Page#addScriptTag

The next-gen web framework.
Extremely Popular
Go to Latest
method Page.prototype.addScriptTag
Re-export
import { Page } from "https://deno.land/x/fresh@1.6.1/tests/deps.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.