puppeteer/assets/js/a016480e.4492ee65.js
release-please[bot] b91a67dc7c deploy: 0057f3fe0a
2024-06-12 08:43:25 +00:00

2 lines
3.1 KiB
JavaScript

/*! For license information please see a016480e.4492ee65.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[17333],{35658:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>c,frontMatter:()=>i,metadata:()=>o,toc:()=>s});var r=t(85893),a=t(11151);const i={sidebar_label:"SerializedAXNode.elementHandle"},l="SerializedAXNode.elementHandle() method",o={id:"api/puppeteer.serializedaxnode.elementhandle",title:"SerializedAXNode.elementHandle() method",description:"Get an ElementHandle for this AXNode if available.",source:"@site/../docs/api/puppeteer.serializedaxnode.elementhandle.md",sourceDirName:"api",slug:"/api/puppeteer.serializedaxnode.elementhandle",permalink:"/next/api/puppeteer.serializedaxnode.elementhandle",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"SerializedAXNode.elementHandle"},sidebar:"api",previous:{title:"SerializedAXNode",permalink:"/next/api/puppeteer.serializedaxnode"},next:{title:"SnapshotOptions",permalink:"/next/api/puppeteer.snapshotoptions"}},d={},s=[{value:"Signature:",id:"signature",level:4}];function p(e){const n={a:"a",code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"serializedaxnodeelementhandle-method",children:"SerializedAXNode.elementHandle() method"}),"\n",(0,r.jsx)(n.p,{children:"Get an ElementHandle for this AXNode if available."}),"\n",(0,r.jsx)(n.p,{children:"If the underlying DOM element has been disposed, the method might return an error."}),"\n",(0,r.jsx)(n.h4,{id:"signature",children:"Signature:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-typescript",children:"interface SerializedAXNode {\n elementHandle(): Promise<ElementHandle | null>;\n}\n"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"Returns:"})}),"\n",(0,r.jsxs)(n.p,{children:["Promise<",(0,r.jsx)(n.a,{href:"/next/api/puppeteer.elementhandle",children:"ElementHandle"})," | null>"]})]})}function c(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},75251:(e,n,t)=>{var r=t(67294),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,t){var r,i={},s=null,p=null;for(r in void 0!==t&&(s=""+t),void 0!==n.key&&(s=""+n.key),void 0!==n.ref&&(p=n.ref),n)l.call(n,r)&&!d.hasOwnProperty(r)&&(i[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===i[r]&&(i[r]=n[r]);return{$$typeof:a,type:e,key:s,ref:p,props:i,_owner:o.current}}n.Fragment=i,n.jsx=s,n.jsxs=s},85893:(e,n,t)=>{e.exports=t(75251)},11151:(e,n,t)=>{t.d(n,{Z:()=>o,a:()=>l});var r=t(67294);const a={},i=r.createContext(a);function l(e){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]);