puppeteer/assets/js/90419857.c0dcfafa.js
release-please[bot] 2b16462081 deploy: 598b2a94bd
2024-05-15 06:17:32 +00:00

2 lines
3.0 KiB
JavaScript

/*! For license information please see 90419857.c0dcfafa.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[38640],{89433:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>l,default:()=>c,frontMatter:()=>s,metadata:()=>i,toc:()=>d});var r=t(85893),a=t(11151);const s={sidebar_label:"JSHandle.asElement"},l="JSHandle.asElement() method",i={id:"api/puppeteer.jshandle.aselement",title:"JSHandle.asElement() method",description:"Either null or the handle itself if the handle is an instance of ElementHandle.",source:"@site/versioned_docs/version-22.8.2/api/puppeteer.jshandle.aselement.md",sourceDirName:"api",slug:"/api/puppeteer.jshandle.aselement",permalink:"/api/puppeteer.jshandle.aselement",draft:!1,unlisted:!1,tags:[],version:"22.8.2",frontMatter:{sidebar_label:"JSHandle.asElement"},sidebar:"api",previous:{title:"JSHandle",permalink:"/api/puppeteer.jshandle"},next:{title:"JSHandle.dispose",permalink:"/api/puppeteer.jshandle.dispose"}},o={},d=[{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:"jshandleaselement-method",children:"JSHandle.asElement() method"}),"\n",(0,r.jsxs)(n.p,{children:["Either ",(0,r.jsx)(n.code,{children:"null"})," or the handle itself if the handle is an instance of ",(0,r.jsx)(n.a,{href:"/api/puppeteer.elementhandle",children:"ElementHandle"}),"."]}),"\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:"class JSHandle {\n abstract asElement(): ElementHandle<Node> | null;\n}\n"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"Returns:"})}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/api/puppeteer.elementhandle",children:"ElementHandle"}),"<Node> | 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"),s=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function d(e,n,t){var r,s={},d=null,p=null;for(r in void 0!==t&&(d=""+t),void 0!==n.key&&(d=""+n.key),void 0!==n.ref&&(p=n.ref),n)l.call(n,r)&&!o.hasOwnProperty(r)&&(s[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===s[r]&&(s[r]=n[r]);return{$$typeof:a,type:e,key:d,ref:p,props:s,_owner:i.current}}n.Fragment=s,n.jsx=d,n.jsxs=d},85893:(e,n,t)=>{e.exports=t(75251)},11151:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>l});var r=t(67294);const a={},s=r.createContext(a);function l(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]);