puppeteer/assets/js/86651850.76c673da.js

2 lines
6.3 KiB
JavaScript
Raw Normal View History

/*! For license information please see 86651850.76c673da.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[78451],{72292:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>l,contentTitle:()=>d,default:()=>a,frontMatter:()=>i,metadata:()=>o,toc:()=>c});var s=n(85893),t=n(11151);const i={sidebar_label:"BrowserLaunchArgumentOptions"},d="BrowserLaunchArgumentOptions interface",o={id:"api/puppeteer.browserlaunchargumentoptions",title:"BrowserLaunchArgumentOptions interface",description:"Launcher options that only apply to Chrome.",source:"@site/../docs/api/puppeteer.browserlaunchargumentoptions.md",sourceDirName:"api",slug:"/api/puppeteer.browserlaunchargumentoptions",permalink:"/next/api/puppeteer.browserlaunchargumentoptions",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"BrowserLaunchArgumentOptions"},sidebar:"api",previous:{title:"BrowserEvents",permalink:"/next/api/puppeteer.browserevents"},next:{title:"CDPEvents",permalink:"/next/api/puppeteer.cdpevents"}},l={},c=[{value:"Signature:",id:"signature",level:4},{value:"Properties",id:"properties",level:2}];function h(e){const r={a:"a",code:"code",h1:"h1",h2:"h2",h4:"h4",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.h1,{id:"browserlaunchargumentoptions-interface",children:"BrowserLaunchArgumentOptions interface"}),"\n",(0,s.jsx)(r.p,{children:"Launcher options that only apply to Chrome."}),"\n",(0,s.jsx)(r.h4,{id:"signature",children:"Signature:"}),"\n",(0,s.jsx)(r.pre,{children:(0,s.jsx)(r.code,{className:"language-typescript",children:"export interface BrowserLaunchArgumentOptions\n"})}),"\n",(0,s.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsxs)("table",{children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:(0,s.jsx)(r.p,{children:"Property"})}),(0,s.jsx)("th",{children:(0,s.jsx)(r.p,{children:"Modifiers"})}),(0,s.jsx)("th",{children:(0,s.jsx)(r.p,{children:"Type"})}),(0,s.jsx)("th",{children:(0,s.jsx)(r.p,{children:"Description"})}),(0,s.jsx)("th",{children:(0,s.jsx)(r.p,{children:"Default"})})]})}),(0,s.jsxs)("tbody",{children:[(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:(0,s.jsx)("span",{id:"args",children:"args"})}),(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:(0,s.jsx)(r.code,{children:"optional"})})}),(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:"string[]"})}),(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:"Additional command line arguments to pass to the browser instance."})}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:(0,s.jsx)("span",{id:"debuggingport",children:"debuggingPort"})}),(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:(0,s.jsx)(r.code,{children:"optional"})})}),(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:"number"})}),(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:"Specify the debugging port number to use"})}),(0,s.jsx)("td",{})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:(0,s.jsx)("span",{id:"devtools",children:"devtools"})}),(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:(0,s.jsx)(r.code,{children:"optional"})})}),(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:"boolean"})}),(0,s.jsx)("td",{children:(0,s.jsxs)(r.p,{children:["Whether to auto-open a DevTools panel for each tab. If this is set to ",(0,s.jsx)(r.code,{children:"true"}),", then ",(0,s.jsx)(r.code,{children:"headless"})," will be forced to ",(0,s.jsx)(r.code,{children:"false"}),"."]})}),(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:(0,s.jsx)(r.code,{children:"false"})})})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:(0,s.jsx)("span",{id:"headless",children:"headless"})}),(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:(0,s.jsx)(r.code,{children:"optional"})})}),(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:"boolean | 'shell'"})}),(0,s.jsxs)("td",{children:[(0,s.jsx)(r.p,{children:"Whether to run the browser in headless mode."}),(0,s.jsx)(r.p,{children:(0,s.jsx)(r.strong,{children:"Remarks:"})}),(0,s.jsxs)(r.ul,{children:["\n",(0,s.jsxs)(r.li,{children:["\n",(0,s.jsxs)(r.p,{children:[(0,s.