1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["14987"],{13249(e,r,s){s.r(r),s.d(r,{metadata:()=>n,default:()=>c,frontMatter:()=>p,contentTitle:()=>i,toc:()=>o,assets:()=>l});var n=JSON.parse('{"id":"api/puppeteer.browser.pages","title":"Browser.pages() method","description":"Gets a list of all open pages inside this Browser.","source":"@site/.generated-docs/next/api/puppeteer.browser.pages.md","sourceDirName":"api","slug":"/api/puppeteer.browser.pages","permalink":"/next/api/puppeteer.browser.pages","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"Browser.pages"},"sidebar":"api","previous":{"title":"Browser.newPage","permalink":"/next/api/puppeteer.browser.newpage"},"next":{"title":"Browser.process","permalink":"/next/api/puppeteer.browser.process"}}'),t=s(74848),a=s(28453);let p={sidebar_label:"Browser.pages"},i="Browser.pages() method",l={},o=[{value:"Signature",id:"signature",level:3},{value:"Parameters",id:"parameters",level:2},{value:"Remarks",id:"remarks",level:2}];function d(e){let r={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.header,{children:(0,t.jsx)(r.h1,{id:"browserpages-method",children:"Browser.pages() method"})}),"\n",(0,t.jsxs)(r.p,{children:["Gets a list of all open ",(0,t.jsx)(r.a,{href:"/next/api/puppeteer.page",children:"pages"})," inside this ",(0,t.jsx)(r.a,{href:"/next/api/puppeteer.browser",children:"Browser"}),"."]}),"\n",(0,t.jsxs)(r.p,{children:["If there are multiple ",(0,t.jsx)(r.a,{href:"/next/api/puppeteer.browsercontext",children:"browser contexts"}),", this returns all ",(0,t.jsx)(r.a,{href:"/next/api/puppeteer.page",children:"pages"})," in all ",(0,t.jsx)(r.a,{href:"/next/api/puppeteer.browsercontext",children:"browser contexts"}),"."]}),"\n",(0,t.jsx)(r.h3,{id:"signature",children:"Signature"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-typescript",children:"class Browser {\n pages(includeAll?: boolean): Promise<Page[]>;\n}\n"})}),"\n",(0,t.jsx)(r.h2,{id:"parameters",children:"Parameters"}),"\n",(0,t.jsxs)("table",{children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Parameter"})}),(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Type"})}),(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Description"})})]})}),(0,t.jsx)("tbody",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"includeAll"})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"boolean"})}),(0,t.jsx)("td",{children:(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.em,{children:"(Optional)"})," experimental, setting to true includes all kinds of pages."]})})]})})]}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Returns:"})}),"\n",(0,t.jsxs)(r.p,{children:["Promise<",(0,t.jsx)(r.a,{href:"/next/api/puppeteer.page",children:"Page"}),"[]>"]}),"\n",(0,t.jsx)(r.h2,{id:"remarks",children:"Remarks"}),"\n",(0,t.jsxs)(r.p,{children:["Non-visible ",(0,t.jsx)(r.a,{href:"/next/api/puppeteer.page",children:"pages"}),", such as ",(0,t.jsx)(r.code,{children:'"background_page"'}),", will not be listed here. You can find them using ",(0,t.jsx)(r.a,{href:"/next/api/puppeteer.target.page",children:"Target.page()"}),"."]})]})}function c(e={}){let{wrapper:r}={...(0,a.R)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},28453(e,r,s){s.d(r,{R:()=>p,x:()=>i});var n=s(96540);let t={},a=n.createContext(t);function p(e){let r=n.useContext(a);return n.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function i(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:p(e.components),n.createElement(a.Provider,{value:r},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.