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

Adds a <link rel="stylesheet"> tag into the page with the desired url or a <style type="text/css"> tag with the content.

Parameters

options: FrameAddStyleTagOptions
  • Options for the style link.

Returns

Promise<ElementHandle<any>>

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