"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[40430],{3905:(e,t,a)=>{a.d(t,{Zo:()=>s,kt:()=>m});varn=a(67294);functionr(e,t,a){returntine?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}functionl(e,t){vara=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}returna}functionp(e){for(vart=1;t<arguments.length;t++){vara=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){r(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}returne}functioni(e,t){if(null==e)return{};vara,n,r=function(e,t){if(null==e)return{};vara,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);returnr}(e,t);if(Object.getOwnPropertySymbols){varl=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}returnr}varo=n.createContext({}),d=function(e){vart=n.useContext(o),a=t;returne&&(a="function"==typeofe?e(t):p(p({},t),e)),a},s=function(e){vart=d(e.components);returnn.createElement(o.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){vart=e.children;returnn.createElement(n.Fragment,{},t)}},c=n.forwardRef((function(e,t){vara=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),c=d(a),m=r,h=c["".concat(o,".").concat(m)]||c[m]||u[m]||l;returna?n.createElement(h,p(p({ref:t},s),{},{components:a})):n.createElement(h,p({ref:t},s))}));functionm(e,t){vara=arguments,r=t&&t.mdxType;if("string"==typeofe||r){varl=a.length,p=newArray(l);p[0]=c;vari={};for(varoint)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i.mdxType="string"==typeofe?e:r,p[1]=i;for(vard=2;d<l;d++)p[d]=a[d];returnn.createElement.apply(null,p)}returnn.createElement.apply(null,a)}c.displayName="MDXCreateElement"},3031:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>d,contentTitle:()=>i,default:()=>c,frontMatter:()=>p,metadata:()=>o,toc:()=>s});a(67294);varn=a(3905);functionr(){returnr=Object.assign||function(e){for(vart=1;t<arguments.length;t++){vara=arguments[t];for(varnina)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}returne},r.apply(this,arguments)}functionl(e,t){if(null==e)return{};vara,n,r=function(e,t){if(null==e)return{};vara,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);returnr}(e,t);if(Object.getOwnPropertySymbols){varl=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}returnr}constp={sidebar_label:"JSHandle"},i="JSHandle class",o={unversionedId:"api/puppeteer.jshandle",id:"api/puppeteer.jshandle",title:"JSHandle class",description:"Represents a reference to a JavaScript object. Instances can be created using Page.evaluateHandle().",source:"@site/../docs/api/puppeteer.jshandle.md",sourceDirName:"api",slug:"/api/puppeteer.jshandle",permalink:"/next/api/puppeteer.jshandle",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"JSHandle"},sidebar:"api",previous:{title:"Frame.waitForXPath",permalink:"/next/api/puppeteer.frame.waitforxpath"},next:{title:"JSHandle.asElement",permalink:"/next/api/puppeteer.jshandle.aselement"}},d={},s=[{value:"Signature:",id:"signature",level:4},{value:"Remarks",id:"remarks",level:2},{value:"Example",id:"example",level:2},{value:"Properties",id:"properties",level:2},{value:"Methods",id:"methods",level:2}],u={toc:s};functionc(e){var{components:t}=e,a=l(e,["components"]);return(0,n.kt)("wrapper",r({},u,a,{components:t,mdxType:"MDXLayout"}),(0,n.kt)("h1",r({},{id:"jshandle-class"}),"JSHandle class"),(0,n.kt)("p",null,"RepresentsareferencetoaJavaScriptobject.Instancescanbecreatedusing