"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[18366],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>f});varr=n(67294);functiona(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionl(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionp(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functiono(e,t){if(null==e)return{};varn,r,a=function(e,t){if(null==e)return{};varn,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);returna}(e,t);if(Object.getOwnPropertySymbols){varl=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}returna}vari=r.createContext({}),s=function(e){vart=r.useContext(i),n=t;returne&&(n="function"==typeofe?e(t):p(p({},t),e)),n},u=function(e){vart=s(e.components);returnr.createElement(i.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){vart=e.children;returnr.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){varn=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,u=o(e,["components","mdxType","originalType","parentName"]),d=s(n),f=a,m=d["".concat(i,".").concat(f)]||d[f]||c[f]||l;returnn?r.createElement(m,p(p({ref:t},u),{},{components:n})):r.createElement(m,p({ref:t},u))}));functionf(e,t){varn=arguments,a=t&&t.mdxType;if("string"==typeofe||a){varl=n.length,p=newArray(l);p[0]=d;varo={};for(variint)hasOwnProperty.call(t,i)&&(o[i]=t[i]);o.originalType=e,o.mdxType="string"==typeofe?e:a,p[1]=o;for(vars=2;s<l;s++)p[s]=n[s];returnr.createElement.apply(null,p)}returnr.createElement.apply(null,n)}d.displayName="MDXCreateElement"},55379:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>s,contentTitle:()=>o,default:()=>d,frontMatter:()=>p,metadata:()=>i,toc:()=>u});n(67294);varr=n(3905);functiona(){returna=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne},a.apply(this,arguments)}functionl(e,t){if(null==e)return{};varn,r,a=function(e,t){if(null==e)return{};varn,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);returna}(e,t);if(Object.getOwnPropertySymbols){varl=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}returna}constp={sidebar_label:"JSHandle.asElement"},o="JSHandle.asElement() method",i={unversionedId:"api/puppeteer.jshandle.aselement",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/../docs/api/puppeteer.jshandle.aselement.md",sourceDirName:"api",slug:"/api/puppeteer.jshandle.aselement",permalink:"/next/api/puppeteer.jshandle.aselement",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"JSHandle.asElement"},sidebar:"api",previous:{title:"JSHandle",permalink:"/next/api/puppeteer.jshandle"},next:{title:"JSHandle.dispose",permalink:"/next/api/puppeteer.jshandle.dispose"}},s={},u=[{value:"Signature:",id:"signature",level:4}],c={toc:u};functiond(e){var{components:t}=e,n=l(e,["components"]);return(0,r.kt)("wrapper",a({},c,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",a({},{id:"jshandleaselement-method"}),"JSHandle.asElement() method"),(0,r.kt)("p",null,"Either ",(0,r.kt)("inlineCode",{parentName:"p"},"null")," or the handle itself if the handle is an instance of ",(0,r.kt)("a",a({parentName:"p"},{href:"/next/api/pup