PageSourceSearch

https://pptr.dev/assets/js/401439b7.3ab7103a.js

js pptr.dev collected 2026-09-24 07:04:54 UTC 3,360 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["16702"],{89445(e,t,r){r.r(t),r.d(t,{metadata:()=>n,default:()=>l,frontMatter:()=>a,contentTitle:()=>o,toc:()=>c,assets:()=>p});var n=JSON.parse('{"id":"api/puppeteer.browsercontext.newpage","title":"BrowserContext.newPage() method","description":"Creates a new page in this browser context.","source":"@site/.generated-docs/next/api/puppeteer.browsercontext.newpage.md","sourceDirName":"api","slug":"/api/puppeteer.browsercontext.newpage","permalink":"/next/api/puppeteer.browsercontext.newpage","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"BrowserContext.newPage"},"sidebar":"api","previous":{"title":"BrowserContext.deleteMatchingCookies","permalink":"/next/api/puppeteer.browsercontext.deletematchingcookies"},"next":{"title":"BrowserContext.overridePermissions","permalink":"/next/api/puppeteer.browsercontext.overridepermissions"}}'),s=r(74848),i=r(28453);let a={sidebar_label:"BrowserContext.newPage"},o="BrowserContext.newPage() method",p={},c=[{value:"Signature",id:"signature",level:3},{value:"Parameters",id:"parameters",level:2}];function d(e){let t={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"browsercontextnewpage-method",children:"BrowserContext.newPage() method"})}),"\n",(0,s.jsxs)(t.p,{children:["Creates a new ",(0,s.jsx)(t.a,{href:"/next/api/puppeteer.page",children:"page"})," in this ",(0,s.jsx)(t.a,{href:"/next/api/puppeteer.browsercontext",children:"browser context"}),"."]}),"\n",(0,s.jsx)(t.h3,{id:"signature",children:"Signature"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-typescript",children:"class BrowserContext {\n  abstract newPage(options?: CreatePageOptions): Promise<Page>;\n}\n"})}),"\n",(0,s.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)("table",{children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:(0,s.jsx)(t.p,{children:"Parameter"})}),(0,s.jsx)("th",{children:(0,s.jsx)(t.p,{children:"Type"})}),(0,s.jsx)("th",{children:(0,s.jsx)(t.p,{children:"Description"})})]})}),(0,s.jsx)("tbody",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:(0,s.jsx)(t.p,{children:"options"})}),(0,s.jsx)("td",{children:(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"/next/api/puppeteer.createpageoptions",children:"CreatePageOptions"})})}),(0,s.jsx)("td",{children:(0,s.jsx)(t.p,{children:(0,s.jsx)(t.em,{children:"(Optional)"})})})]})})]}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.strong,{children:"Returns:"})}),"\n",(0,s.jsxs)(t.p,{children:["Promise<",(0,s.jsx)(t.a,{href:"/next/api/puppeteer.page",children:"Page"}),">"]})]})}function l(e={}){let{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},28453(e,t,r){r.d(t,{R:()=>a,x:()=>o});var n=r(96540);let s={},i=n.createContext(s);function a(e){let t=n.useContext(i);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),n.createElement(i.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.