"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[95914],{3905:(e,r,t)=>{t.d(r,{Zo:()=>l,kt:()=>g});var n=t(67294);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var s=n.createContext({}),c=function(e){var r=n.useContext(s),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},l=function(e){var r=c(e.components);return n.createElement(s.Provider,{value:r},e.children)},u={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,o=e.originalType,s=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),f=c(t),g=a,b=f["".concat(s,".").concat(g)]||f[g]||u[g]||o;return t?n.createElement(b,p(p({ref:r},l),{},{components:t})):n.createElement(b,p({ref:r},l))}));function g(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,p=new Array(o);p[0]=f;var i={};for(var s in r)hasOwnProperty.call(r,s)&&(i[s]=r[s]);i.originalType=e,i.mdxType="string"==typeof e?e:a,p[1]=i;for(var c=2;c{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>f,frontMatter:()=>p,metadata:()=>s,toc:()=>l});t(67294);var n=t(3905);function a(){return a=Object.assign||function(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}const p={sidebar_label:"Browser.newPage"},i="Browser.newPage() method",s={unversionedId:"api/puppeteer.browser.newpage",id:"version-19.3.0/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/versioned_docs/version-19.3.0/api/puppeteer.browser.newpage.md",sourceDirName:"api",slug:"/api/puppeteer.browser.newpage",permalink:"/api/puppeteer.browser.newpage",draft:!1,tags:[],version:"19.3.0",frontMatter:{sidebar_label:"Browser.newPage"},sidebar:"api",previous:{title:"Browser.isConnected",permalink:"/api/puppeteer.browser.isconnected"},next:{title:"Browser.pages",permalink:"/api/puppeteer.browser.pages"}},c={},l=[{value:"Signature:",id:"signature",level:4}],u={toc:l};function f(e){var{components:r}=e,t=o(e,["components"]);return(0,n.kt)("wrapper",a({},u,t,{components:r,mdxType:"MDXLayout"}),(0,n.kt)("h1",a({},{id:"browsernewpage-method"}),"Browser.newPage() method"),(0,n.kt)("p",null,"Promise which resolves to a new ",(0,n.kt)("a",a({parentName:"p"},{href:"/api/puppeteer.page"}),"Page")," object. The Page is created in a default browser context."),(0,n.kt)("h4",a({},{id:"signature"}),"Signature:"),(0,n.kt)("pre",null,(0,n.kt)("code",a({parentName:"pre"},{className:"language-typescript"}),"class Browser {\n newPage(): Promise;\n}\n")),(0,n.kt)("p",null,(0,n.kt)("strong",{parentName:"p"},"Returns:")),(0,n.kt)("p",null,"Promise","<",(0,n.kt)("a",a({parentName:"p"},{href:"/api/puppeteer.page"}),"Page"),">"))}f.isMDXComponent=!0}}]);