puppeteer/assets/js/d554342b.8b564c68.js
2021-10-07 15:21:45 +00:00

1 line
4.5 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[98643],{3905:function(e,t,r){r.d(t,{Zo:function(){return d},kt:function(){return f}});var p=r(67294);function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);t&&(p=p.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,p)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t){if(null==e)return{};var r,p,n=function(e,t){if(null==e)return{};var r,p,n={},o=Object.keys(e);for(p=0;p<o.length;p++)r=o[p],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(p=0;p<o.length;p++)r=o[p],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var i=p.createContext({}),c=function(e){var t=p.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):u(u({},t),e)),r},d=function(e){var t=c(e.components);return p.createElement(i.Provider,{value:t},e.children)},l={inlineCode:"code",wrapper:function(e){var t=e.children;return p.createElement(p.Fragment,{},t)}},s=p.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,i=e.parentName,d=a(e,["components","mdxType","originalType","parentName"]),s=c(r),f=n,m=s["".concat(i,".").concat(f)]||s[f]||l[f]||o;return r?p.createElement(m,u(u({ref:t},d),{},{components:r})):p.createElement(m,u({ref:t},d))}));function f(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,u=new Array(o);u[0]=s;var a={};for(var i in t)hasOwnProperty.call(t,i)&&(a[i]=t[i]);a.originalType=e,a.mdxType="string"==typeof e?e:n,u[1]=a;for(var c=2;c<o;c++)u[c]=r[c];return p.createElement.apply(null,u)}return p.createElement.apply(null,r)}s.displayName="MDXCreateElement"},36936:function(e,t,r){r.r(t),r.d(t,{frontMatter:function(){return a},contentTitle:function(){return i},metadata:function(){return c},toc:function(){return d},default:function(){return s}});var p=r(87462),n=r(63366),o=(r(67294),r(3905)),u=["components"],a={},i=void 0,c={unversionedId:"puppeteer.puppeteernode.product",id:"version-10.1.0/puppeteer.puppeteernode.product",isDocsHomePage:!1,title:"puppeteer.puppeteernode.product",description:"Home &gt; puppeteer &gt; PuppeteerNode &gt; product",source:"@site/versioned_docs/version-10.1.0/puppeteer.puppeteernode.product.md",sourceDirName:".",slug:"/puppeteer.puppeteernode.product",permalink:"/puppeteer/docs/puppeteer.puppeteernode.product",editUrl:"https://github.com/facebook/puppeteer/edit/main/website/versioned_docs/version-10.1.0/puppeteer.puppeteernode.product.md",version:"10.1.0",frontMatter:{}},d=[{value:"PuppeteerNode.product property",id:"puppeteernodeproduct-property",children:[]},{value:"Remarks",id:"remarks",children:[]}],l={toc:d};function s(e){var t=e.components,r=(0,n.Z)(e,u);return(0,o.kt)("wrapper",(0,p.Z)({},l,r,{components:t,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.puppeteernode"},"PuppeteerNode")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer.puppeteernode.product"},"product")),(0,o.kt)("h2",{id:"puppeteernodeproduct-property"},"PuppeteerNode.product property"),(0,o.kt)("p",null,"The name of the browser that is under automation (",(0,o.kt)("inlineCode",{parentName:"p"},'"chrome"')," or ",(0,o.kt)("inlineCode",{parentName:"p"},'"firefox"'),")"),(0,o.kt)("b",null,"Signature:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-typescript"},"get product(): string;\n")),(0,o.kt)("h2",{id:"remarks"},"Remarks"),(0,o.kt)("p",null,"The product is set by the ",(0,o.kt)("inlineCode",{parentName:"p"},"PUPPETEER_PRODUCT")," environment variable or the ",(0,o.kt)("inlineCode",{parentName:"p"},"product")," option in ",(0,o.kt)("inlineCode",{parentName:"p"},"puppeteer.launch([options])")," and defaults to ",(0,o.kt)("inlineCode",{parentName:"p"},"chrome"),". Firefox support is experimental."))}s.isMDXComponent=!0}}]);