puppeteer/assets/js/eeffe76b.7dbaa65a.js
release-please[bot] d5d4bf3f0e deploy: 75f170b26d
2024-04-11 16:53:35 +00:00

2 lines
2.9 KiB
JavaScript

/*! For license information please see eeffe76b.7dbaa65a.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[92743],{43678:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>p,contentTitle:()=>a,default:()=>d,frontMatter:()=>n,metadata:()=>i,toc:()=>c});var t=s(85893),o=s(11151);const n={sidebar_label:"Browser.close"},a="Browser.close() method",i={id:"api/puppeteer.browser.close",title:"Browser.close() method",description:"Closes this browser and all associated pages.",source:"@site/versioned_docs/version-22.6.4/api/puppeteer.browser.close.md",sourceDirName:"api",slug:"/api/puppeteer.browser.close",permalink:"/api/puppeteer.browser.close",draft:!1,unlisted:!1,tags:[],version:"22.6.4",frontMatter:{sidebar_label:"Browser.close"},sidebar:"api",previous:{title:"Browser.browserContexts",permalink:"/api/puppeteer.browser.browsercontexts"},next:{title:"Browser.createBrowserContext",permalink:"/api/puppeteer.browser.createbrowsercontext"}},p={},c=[{value:"Signature:",id:"signature",level:4}];function l(e){const r={a:"a",code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,o.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h1,{id:"browserclose-method",children:"Browser.close() method"}),"\n",(0,t.jsxs)(r.p,{children:["Closes this ",(0,t.jsx)(r.a,{href:"/api/puppeteer.browser",children:"browser"})," and all associated ",(0,t.jsx)(r.a,{href:"/api/puppeteer.page",children:"pages"}),"."]}),"\n",(0,t.jsx)(r.h4,{id:"signature",children:"Signature:"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-typescript",children:"class Browser {\n abstract close(): Promise<void>;\n}\n"})}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Returns:"})}),"\n",(0,t.jsx)(r.p,{children:"Promise<void>"})]})}function d(e={}){const{wrapper:r}={...(0,o.a)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},75251:(e,r,s)=>{var t=s(67294),o=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function c(e,r,s){var t,n={},c=null,l=null;for(t in void 0!==s&&(c=""+s),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(l=r.ref),r)a.call(r,t)&&!p.hasOwnProperty(t)&&(n[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===n[t]&&(n[t]=r[t]);return{$$typeof:o,type:e,key:c,ref:l,props:n,_owner:i.current}}r.Fragment=n,r.jsx=c,r.jsxs=c},85893:(e,r,s)=>{e.exports=s(75251)},11151:(e,r,s)=>{s.d(r,{Z:()=>i,a:()=>a});var t=s(67294);const o={},n=t.createContext(o);function a(e){const r=t.useContext(n);return t.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(o):e.components||o:a(e.components),t.createElement(n.Provider,{value:r},e.children)}}}]);