mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
/*! For license information please see 0cef9437.87a31e1f.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4856],{43096:(e,d,n)=>{n.r(d),n.d(d,{assets:()=>c,contentTitle:()=>l,default:()=>j,frontMatter:()=>r,metadata:()=>t,toc:()=>h});var i=n(85893),s=n(11151);const r={sidebar_label:"SerializedAXNode"},l="SerializedAXNode interface",t={id:"api/puppeteer.serializedaxnode",title:"SerializedAXNode interface",description:"Represents a Node and the properties of it that are relevant to Accessibility.",source:"@site/../docs/api/puppeteer.serializedaxnode.md",sourceDirName:"api",slug:"/api/puppeteer.serializedaxnode",permalink:"/next/api/puppeteer.serializedaxnode",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"SerializedAXNode"},sidebar:"api",previous:{title:"ScreenshotOptions",permalink:"/next/api/puppeteer.screenshotoptions"},next:{title:"SerializedAXNode.elementHandle",permalink:"/next/api/puppeteer.serializedaxnode.elementhandle"}},c={},h=[{value:"Signature:",id:"signature",level:4},{value:"Properties",id:"properties",level:2},{value:"Methods",id:"methods",level:2}];function x(e){const d={a:"a",code:"code",h1:"h1",h2:"h2",h4:"h4",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.h1,{id:"serializedaxnode-interface",children:"SerializedAXNode interface"}),"\n",(0,i.jsx)(d.p,{children:"Represents a Node and the properties of it that are relevant to Accessibility."}),"\n",(0,i.jsx)(d.h4,{id:"signature",children:"Signature:"}),"\n",(0,i.jsx)(d.pre,{children:(0,i.jsx)(d.code,{className:"language-typescript",children:"export interface SerializedAXNode\n"})}),"\n",(0,i.jsx)(d.h2,{id:"properties",children:"Properties"}),"\n",(0,i.jsxs)("table",{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:(0,i.jsx)(d.p,{children:"Property"})}),(0,i.jsx)("th",{children:(0,i.jsx)(d.p,{children:"Modifiers"})}),(0,i.jsx)("th",{children:(0,i.jsx)(d.p,{children:"Type"})}),(0,i.jsx)("th",{children:(0,i.jsx)(d.p,{children:"Description"})}),(0,i.jsx)("th",{children:(0,i.jsx)(d.p,{children:"Default"})})]})}),(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"autocomplete",children:"autocomplete"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"string"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"checked",children:"checked"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"boolean | 'mixed'"})}),(0,i.jsx)("td",{children:(0,i.jsxs)(d.p,{children:["Whether the checkbox is checked, or in a ",(0,i.jsx)(d.a,{href:"https://www.w3.org/TR/wai-aria-practices/examples/checkbox/checkbox-2/checkbox-2.html",children:"mixed state"}),"."]})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"children",children:"children"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsxs)(d.p,{children:[(0,i.jsx)(d.a,{href:"/next/api/puppeteer.serializedaxnode",children:"SerializedAXNode"}),"[]"]})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"Children of this node, if there are any."})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"description",children:"description"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"string"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"An additional human readable description of the node."})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"disabled",children:"disabled"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"boolean"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"expanded",children:"expanded"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"boolean"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"focused",children:"focused"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"boolean"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"haspopup",children:"haspopup"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"string"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"invalid",children:"invalid"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"string"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"Whether and in what way this node's value is invalid."})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"keyshortcuts",children:"keyshortcuts"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"string"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"Any keyboard shortcuts associated with this node."})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"level",children:"level"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"number"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"The level of a heading."})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"modal",children:"modal"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"boolean"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"multiline",children:"multiline"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"boolean"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"multiselectable",children:"multiselectable"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"boolean"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"Whether more than one child can be selected."})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"name",children:"name"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"string"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"A human readable name for the node."})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"orientation",children:"orientation"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"string"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"pressed",children:"pressed"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"boolean | 'mixed'"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"Whether the node is checked or in a mixed state."})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"readonly",children:"readonly"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"boolean"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"required",children:"required"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"boolean"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"role",children:"role"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"string"})}),(0,i.jsx)("td",{children:(0,i.jsxs)(d.p,{children:["The ",(0,i.jsx)(d.a,{href:"https://www.w3.org/TR/wai-aria/#usage_intro",children:"role"})," of the node."]})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"roledescription",children:"roledescription"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"string"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"A human readable alternative to the role."})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"selected",children:"selected"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"boolean"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"value",children:"value"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"string | number"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"The current value of the node."})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"valuemax",children:"valuemax"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"number"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"valuemin",children:"valuemin"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"number"})}),(0,i.jsx)("td",{}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"valuetext",children:"valuetext"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:(0,i.jsx)(d.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"string"})}),(0,i.jsx)("td",{children:(0,i.jsx)(d.p,{children:"A description of the current value."})}),(0,i.jsx)("td",{})]})]})]}),"\n",(0,i.jsx)(d.h2,{id:"methods",children:"Methods"}),"\n",(0,i.jsxs)("table",{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:(0,i.jsx)(d.p,{children:"Method"})}),(0,i.jsx)("th",{children:(0,i.jsx)(d.p,{children:"Description"})})]})}),(0,i.jsx)("tbody",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"elementhandle",children:(0,i.jsx)(d.a,{href:"/next/api/puppeteer.serializedaxnode.elementhandle",children:"elementHandle()"})})}),(0,i.jsxs)("td",{children:[(0,i.jsx)(d.p,{children:"Get an ElementHandle for this AXNode if available."}),(0,i.jsx)(d.p,{children:"If the underlying DOM element has been disposed, the method might return an error."})]})]})})]})]})}function j(e={}){const{wrapper:d}={...(0,s.a)(),...e.components};return d?(0,i.jsx)(d,{...e,children:(0,i.jsx)(x,{...e})}):x(e)}},75251:(e,d,n)=>{var i=n(67294),s=Symbol.for("react.element"),r=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,t=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function h(e,d,n){var i,r={},h=null,x=null;for(i in void 0!==n&&(h=""+n),void 0!==d.key&&(h=""+d.key),void 0!==d.ref&&(x=d.ref),d)l.call(d,i)&&!c.hasOwnProperty(i)&&(r[i]=d[i]);if(e&&e.defaultProps)for(i in d=e.defaultProps)void 0===r[i]&&(r[i]=d[i]);return{$$typeof:s,type:e,key:h,ref:x,props:r,_owner:t.current}}d.Fragment=r,d.jsx=h,d.jsxs=h},85893:(e,d,n)=>{e.exports=n(75251)},11151:(e,d,n)=>{n.d(d,{Z:()=>t,a:()=>l});var i=n(67294);const s={},r=i.createContext(s);function l(e){const d=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(d):{...d,...e}}),[d,e])}function t(e){let d;return d=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),i.createElement(r.Provider,{value:d},e.children)}}}]); |