"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[96444],{3905:(e,r,t)=>{t.d(r,{Zo:()=>u,kt:()=>f});varn=t(67294);functionp(e,r,t){returnrine?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}functiona(e,r){vart=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){returnObject.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}returnt}functiono(e){for(varr=1;r<arguments.length;r++){vart=null!=arguments[r]?arguments[r]:{};r%2?a(Object(t),!0).forEach((function(r){p(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}returne}functioni(e,r){if(null==e)return{};vart,n,p=function(e,r){if(null==e)return{};vart,n,p={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(p[t]=e[t]);returnp}(e,r);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(p[t]=e[t])}returnp}varc=n.createContext({}),s=function(e){varr=n.useContext(c),t=r;returne&&(t="function"==typeofe?e(r):o(o({},r),e)),t},u=function(e){varr=s(e.components);returnn.createElement(c.Provider,{value:r},e.children)},l={inlineCode:"code",wrapper:function(e){varr=e.children;returnn.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){vart=e.components,p=e.mdxType,a=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),m=s(t),f=p,w=m["".concat(c,".").concat(f)]||m[f]||l[f]||a;returnt?n.createElement(w,o(o({ref:r},u),{},{components:t})):n.createElement(w,o({ref:r},u))}));functionf(e,r){vart=arguments,p=r&&r.mdxType;if("string"==typeofe||p){vara=t.length,o=newArray(a);o[0]=m;vari={};for(varcinr)hasOwnProperty.call(r,c)&&(i[c]=r[c]);i.originalType=e,i.mdxType="string"==typeofe?e:p,o[1]=i;for(vars=2;s<a;s++)o[s]=t[s];returnn.createElement.apply(null,o)}returnn.createElement.apply(null,t)}m.displayName="MDXCreateElement"},4548:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>o,default:()=>l,frontMatter:()=>a,metadata:()=>i,toc:()=>s});varn=t(87462),p=(t(67294),t(3905));consta={},o="Browser.newPage() method",i={unversionedId:"api/puppeteer.browser.newpage",id:"api/puppeteer.browser.newpage",title:"Browser.newPage() method",description:"Promise which resolves to a new Page object. The Page is created in a default browser context.",source:"@site/../docs/api/puppeteer.browser.newpage.md",sourceDirName:"api",slug:"/api/puppeteer.browser.newpage",permalink:"/puppeteer/api/puppeteer.browser.newpage",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"sidebar",previous:{title:"Browser.isConnected() method",permalink:"/puppeteer/api/puppeteer.browser.isconnected"},next:{title:"Browser.pages() method",permalink:"/puppeteer/api/puppeteer.browser.pages"}},c={},s=[],u={toc:s};functionl(e){let{components:r,...t}=e;return(0,p.kt)("wrapper",(0,n.Z)({},u,t,{components:r,mdxType:"MDXLayout"}),(0,p.kt)("h1",{id:"browsernewpage-method"},"Browser.newPage() method"),(0,p.kt)("p",null,"Promise which resolves to a new ",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/api/puppeteer.page"},"Page")," object. The Page is created in a default browser context."),(0,p.kt)("p",null,(0,p.kt)("strong",{parentName:"p"},"Signature:")),(0,p.kt)("pre",null,(0,p.kt)("code",{parentName:"pre",className:"language-typescript"},"newPage(): Promise<Page>;\n")),(0,p.kt)("p",null,(0,p.kt)("strong",{parentName:"p"},"Returns:")),(0,p.kt)("p",null,"Promise","<",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/api/puppeteer.page"},"Page"),">"))}l.isMDXComponent=!0}}]);