Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
interface Protocol.DOM.SetAttributesAsTextRequest
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { SetAttributesAsTextRequest } = Protocol.DOM;

Properties

nodeId: NodeId

Id of the element to set attributes for.

text: string

Text with a number of attributes. Will parse this text using HTML parser.

optional
name: string

Attribute name to replace with new attributes derived from text in case text parsed successfully.