puppeteer/assets/js/111063ea.46d64cfc.js
release-please[bot] d321f9557a deploy: 8c0ac61260
2023-12-06 08:09:55 +00:00

2 lines
3.0 KiB
JavaScript

/*! For license information please see 111063ea.46d64cfc.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[24268],{51157:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>i,contentTitle:()=>p,default:()=>d,frontMatter:()=>o,metadata:()=>c,toc:()=>a});var t=s(85893),n=s(11151);const o={sidebar_label:"Browser.process"},p="Browser.process() method",c={id:"api/puppeteer.browser.process",title:"Browser.process() method",description:"Gets the associated ChildProcess.",source:"@site/versioned_docs/version-21.6.0/api/puppeteer.browser.process.md",sourceDirName:"api",slug:"/api/puppeteer.browser.process",permalink:"/api/puppeteer.browser.process",draft:!1,unlisted:!1,tags:[],version:"21.6.0",frontMatter:{sidebar_label:"Browser.process"},sidebar:"api",previous:{title:"Browser.pages",permalink:"/api/puppeteer.browser.pages"},next:{title:"Browser.target",permalink:"/api/puppeteer.browser.target"}},i={},a=[{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,n.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h1,{id:"browserprocess-method",children:"Browser.process() method"}),"\n",(0,t.jsxs)(r.p,{children:["Gets the associated ",(0,t.jsx)(r.a,{href:"https://nodejs.org/api/child_process.html#class-childprocess",children:"ChildProcess"}),"."]}),"\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 process(): ChildProcess | null;\n}\n"})}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Returns:"})}),"\n",(0,t.jsx)(r.p,{children:"ChildProcess | null"}),"\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.code,{children:"null"})," if this instance was connected to via ",(0,t.jsx)(r.a,{href:"/api/puppeteer.puppeteer.connect",children:"Puppeteer.connect()"}),"."]})]})}function d(e={}){const{wrapper:r}={...(0,n.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),n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,c=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,s){var t,o={},a=null,l=null;for(t in void 0!==s&&(a=""+s),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(l=r.ref),r)p.call(r,t)&&!i.hasOwnProperty(t)&&(o[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===o[t]&&(o[t]=r[t]);return{$$typeof:n,type:e,key:a,ref:l,props:o,_owner:c.current}}r.Fragment=o,r.jsx=a,r.jsxs=a},85893:(e,r,s)=>{e.exports=s(75251)},11151:(e,r,s)=>{s.d(r,{Z:()=>c,a:()=>p});var t=s(67294);const n={},o=t.createContext(n);function p(e){const r=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function c(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:p(e.components),t.createElement(o.Provider,{value:r},e.children)}}}]);