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