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