"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[30832],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>g});varr=n(67294);functiono(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functiona(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?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functioni(e,t){if(null==e)return{};varn,r,o=function(e,t){if(null==e)return{};varn,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);returno}(e,t);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}returno}varc=r.createContext({}),l=function(e){vart=r.useContext(c),n=t;returne&&(n="function"==typeofe?e(t):p(p({},t),e)),n},u=function(e){vart=l(e.components);returnr.createElement(c.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){vart=e.children;returnr.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){varn=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),f=l(n),g=o,m=f["".concat(c,".").concat(g)]||f[g]||s[g]||a;returnn?r.createElement(m,p(p({ref:t},u),{},{components:n})):r.createElement(m,p({ref:t},u))}));functiong(e,t){varn=arguments,o=t&&t.mdxType;if("string"==typeofe||o){vara=n.length,p=newArray(a);p[0]=f;vari={};for(varcint)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i.mdxType="string"==typeofe?e:o,p[1]=i;for(varl=2;l<a;l++)p[l]=n[l];returnr.createElement.apply(null,p)}returnr.createElement.apply(null,n)}f.displayName="MDXCreateElement"},70544:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>i,default:()=>f,frontMatter:()=>p,metadata:()=>c,toc:()=>u});n(67294);varr=n(3905);functiono(){returno=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},o.apply(this,arguments)}functiona(e,t){if(null==e)return{};varn,r,o=function(e,t){if(null==e)return{};varn,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);returno}(e,t);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}returno}constp={sidebar_label:"Page.content"},i="Page.content() method",c={unversionedId:"api/puppeteer.page.content",id:"version-21.4.1/api/puppeteer.page.content",title:"Page.content() method",description:"The full HTML contents of the page, including the DOCTYPE.",source:"@site/versioned_docs/version-21.4.1/api/puppeteer.page.content.md",sourceDirName:"api",slug:"/api/puppeteer.page.content",permalink:"/api/puppeteer.page.content",draft:!1,tags:[],version:"21.4.1",frontMatter:{sidebar_label:"Page.content"},sidebar:"api",previous:{title:"Page.close",permalink:"/api/puppeteer.page.close"},next:{title:"Page.cookies",permalink:"/api/puppeteer.page.cookies"}},l={},u=[{value:"Signature:",id:"signature",level:4}],s={toc:u};functionf(e){var{components:t}=e,n=a(e,["components"]);return(0,r.kt)("wrapper",o({},s,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",o({},{id:"pagecontent-method"}),"Page.content() method"),(0,r.kt)("p",null,"The full HTML contents of the page, including the DOCTYPE."),(0,r.kt)("h4",o({},{id:"signature"}),"Signature:"),(0,r.kt)("pre",null,(0,r.kt)("code",o({parentName:"pre"},{className:"language-typescript"}),"classPage{\ncontent():Pro