"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[12255],{3905:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>y});vara=r(67294);functionn(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functionp(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}returnr}functiono(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functionl(e,t){if(null==e)return{};varr,a,n=function(e,t){if(null==e)return{};varr,a,n={},p=Object.keys(e);for(a=0;a<p.length;a++)r=p[a],t.indexOf(r)>=0||(n[r]=e[r]);returnn}(e,t);if(Object.getOwnPropertySymbols){varp=Object.getOwnPropertySymbols(e);for(a=0;a<p.length;a++)r=p[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}returnn}vari=a.createContext({}),s=function(e){vart=a.useContext(i),r=t;returne&&(r="function"==typeofe?e(t):o(o({},t),e)),r},c=function(e){vart=s(e.components);returna.createElement(i.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){vart=e.children;returna.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){varr=e.components,n=e.mdxType,p=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),m=s(r),y=n,d=m["".concat(i,".").concat(y)]||m[y]||u[y]||p;returnr?a.createElement(d,o(o({ref:t},c),{},{components:r})):a.createElement(d,o({ref:t},c))}));functiony(e,t){varr=arguments,n=t&&t.mdxType;if("string"==typeofe||n){varp=r.length,o=newArray(p);o[0]=m;varl={};for(variint)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l.mdxType="string"==typeofe?e:n,o[1]=l;for(vars=2;s<p;s++)o[s]=r[s];returna.createElement.apply(null,o)}returna.createElement.apply(null,r)}m.displayName="MDXCreateElement"},42952:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>l,default:()=>m,frontMatter:()=>o,metadata:()=>i,toc:()=>c});r(67294);vara=r(3905);functionn(){returnn=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varr=arguments[t];for(varainr)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}returne},n.apply(this,arguments)}functionp(e,t){if(null==e)return{};varr,a,n=function(e,t){if(null==e)return{};varr,a,n={},p=Object.keys(e);for(a=0;a<p.length;a++)r=p[a],t.indexOf(r)>=0||(n[r]=e[r]);returnn}(e,t);if(Object.getOwnPropertySymbols){varp=Object.getOwnPropertySymbols(e);for(a=0;a<p.length;a++)r=p[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}returnn}consto={sidebar_label:"Page.queryObjects"},l="Page.queryObjects() method",i={unversionedId:"api/puppeteer.page.queryobjects",id:"version-21.5.1/api/puppeteer.page.queryobjects",title:"Page.queryObjects() method",description:"This method iterates the JavaScript heap and finds all objects with the given prototype.",source:"@site/versioned_docs/version-21.5.1/api/puppeteer.page.queryobjects.md",sourceDirName:"api",slug:"/api/puppeteer.page.queryobjects",permalink:"/api/puppeteer.page.queryobjects",draft:!1,tags:[],version:"21.5.1",frontMatter:{sidebar_label:"Page.queryObjects"},sidebar:"api",previous:{title:"Page.pdf",permalink:"/api/puppeteer.page.pdf"},next:{title:"Page.reload",permalink:"/api/puppeteer.page.reload"}},s={},c=[{value:"Signature:",id:"signature",level:4},{value:"Parameters",id:"parameters",level:2},{value:"Example",id:"example",level:2}],u={toc:c};functionm(e){var{components:t}=e,r=p(e,["components"]);return(0,a.kt)("wrapper",n({},u,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",n({},{id:"pagequeryobjects-method"}),"Page.queryObjects() method"),(0,a.kt)("p",null,"ThismethoditeratestheJavaScriptheapandfindsallobjectswiththe