puppeteer/assets/js/8e74d5ff.2946c201.js
2021-10-07 15:21:45 +00:00

1 line
4.3 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[71801],{3905:function(e,r,t){t.d(r,{Zo:function(){return i},kt:function(){return d}});var n=t(67294);function p(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function s(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?o(Object(t),!0).forEach((function(r){p(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function c(e,r){if(null==e)return{};var t,n,p=function(e,r){if(null==e)return{};var t,n,p={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(p[t]=e[t]);return p}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(p[t]=e[t])}return p}var u=n.createContext({}),a=function(e){var r=n.useContext(u),t=r;return e&&(t="function"==typeof e?e(r):s(s({},r),e)),t},i=function(e){var r=a(e.components);return n.createElement(u.Provider,{value:r},e.children)},l={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},f=n.forwardRef((function(e,r){var t=e.components,p=e.mdxType,o=e.originalType,u=e.parentName,i=c(e,["components","mdxType","originalType","parentName"]),f=a(t),d=p,m=f["".concat(u,".").concat(d)]||f[d]||l[d]||o;return t?n.createElement(m,s(s({ref:r},i),{},{components:t})):n.createElement(m,s({ref:r},i))}));function d(e,r){var t=arguments,p=r&&r.mdxType;if("string"==typeof e||p){var o=t.length,s=new Array(o);s[0]=f;var c={};for(var u in r)hasOwnProperty.call(r,u)&&(c[u]=r[u]);c.originalType=e,c.mdxType="string"==typeof e?e:p,s[1]=c;for(var a=2;a<o;a++)s[a]=t[a];return n.createElement.apply(null,s)}return n.createElement.apply(null,t)}f.displayName="MDXCreateElement"},81018:function(e,r,t){t.r(r),t.d(r,{frontMatter:function(){return c},contentTitle:function(){return u},metadata:function(){return a},toc:function(){return i},default:function(){return f}});var n=t(87462),p=t(63366),o=(t(67294),t(3905)),s=["components"],c={},u=void 0,a={unversionedId:"puppeteer.browser.process",id:"version-10.1.0/puppeteer.browser.process",isDocsHomePage:!1,title:"puppeteer.browser.process",description:"Home &gt; puppeteer &gt; Browser &gt; process",source:"@site/versioned_docs/version-10.1.0/puppeteer.browser.process.md",sourceDirName:".",slug:"/puppeteer.browser.process",permalink:"/puppeteer/docs/puppeteer.browser.process",editUrl:"https://github.com/facebook/puppeteer/edit/main/website/versioned_docs/version-10.1.0/puppeteer.browser.process.md",version:"10.1.0",frontMatter:{},sidebar:"version-10.1.0/docs",previous:{title:"puppeteer.browser.pages",permalink:"/puppeteer/docs/puppeteer.browser.pages"},next:{title:"puppeteer.browser.target",permalink:"/puppeteer/docs/puppeteer.browser.target"}},i=[{value:"Browser.process() method",id:"browserprocess-method",children:[]}],l={toc:i};function f(e){var r=e.components,t=(0,p.Z)(e,s);return(0,o.kt)("wrapper",(0,n.Z)({},l,t,{components:r,mdxType:"MDXLayout"}),(0,o.kt)("p",null,(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/index"},"Home")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer"},"puppeteer")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer.browser"},"Browser")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer.browser.process"},"process")),(0,o.kt)("h2",{id:"browserprocess-method"},"Browser.process() method"),(0,o.kt)("p",null,"The spawned browser process. Returns ",(0,o.kt)("inlineCode",{parentName:"p"},"null")," if the browser instance was created with ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer.puppeteer.connect"},"Puppeteer.connect()"),"."),(0,o.kt)("b",null,"Signature:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-typescript"},"process(): ChildProcess | null;\n")),(0,o.kt)("b",null,"Returns:"),(0,o.kt)("p",null,"ChildProcess ","|"," null"))}f.isMDXComponent=!0}}]);