"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[91568],{3905:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>h});varr=n(67294);functiona(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functiono(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?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functioni(e,t){if(null==e)return{};varn,r,a=function(e,t){if(null==e)return{};varn,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);returna}(e,t);if(Object.getOwnPropertySymbols){varo=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}returna}varl=r.createContext({}),s=function(e){vart=r.useContext(l),n=t;returne&&(n="function"==typeofe?e(t):p(p({},t),e)),n},c=function(e){vart=s(e.components);returnr.createElement(l.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){vart=e.children;returnr.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){varn=e.components,a=e.mdxType,o=e.originalType,l=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),m=s(n),h=a,d=m["".concat(l,".").concat(h)]||m[h]||u[h]||o;returnn?r.createElement(d,p(p({ref:t},c),{},{components:n})):r.createElement(d,p({ref:t},c))}));functionh(e,t){varn=arguments,a=t&&t.mdxType;if("string"==typeofe||a){varo=n.length,p=newArray(o);p[0]=m;vari={};for(varlint)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeofe?e:a,p[1]=i;for(vars=2;s<o;s++)p[s]=n[s];returnr.createElement.apply(null,p)}returnr.createElement.apply(null,n)}m.displayName="MDXCreateElement"},62786:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>l,toc:()=>c});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)}functiono(e,t){if(null==e)return{};varn,r,a=function(e,t){if(null==e)return{};varn,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);returna}(e,t);if(Object.getOwnPropertySymbols){varo=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}returna}constp={sidebar_label:"Page.screenshot"},i="Page.screenshot() method",l={unversionedId:"api/puppeteer.page.screenshot",id:"api/puppeteer.page.screenshot",title:"Page.screenshot() method",description:"Captures screenshot of the current page.",source:"@site/../docs/api/puppeteer.page.screenshot.md",sourceDirName:"api",slug:"/api/puppeteer.page.screenshot",permalink:"/next/api/puppeteer.page.screenshot",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Page.screenshot"},sidebar:"api",previous:{title:"Page.removeScriptToEvaluateOnNewDocument",permalink:"/next/api/puppeteer.page.removescripttoevaluateonnewdocument"},next:{title:"Page.screenshot_1",permalink:"/next/api/puppeteer.page.screenshot_1"}},s={},c=[{value:"Signature:",id:"signature",level:4},{value:"Parameters",id:"parameters",level:2},{value:"Remarks",id:"remarks",level:2}],u={toc:c};functionm(e){var{components:t}=e,n=o(e,["components"]);return(0,r.kt)("wrapper",a({},u,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",a({},{id:"pagescreenshot-method"}),"Page.screenshot() method"),(0,r.kt)("p",null,"Captures screenshot of the current page."),(0,r.kt)("h4",a({},{id:"signature"}),"Signat