puppeteer/assets/js/7a723c0f.bf15fd99.js

2 lines
6.1 KiB
JavaScript
Raw Normal View History

/*! For license information please see 7a723c0f.bf15fd99.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[72502],{33912:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>s,metadata:()=>c,toc:()=>l});var t=n(85893),i=n(11151);const s={sidebar_label:"BrowserConnectOptions"},o="BrowserConnectOptions interface",c={id:"api/puppeteer.browserconnectoptions",title:"BrowserConnectOptions interface",description:"Generic browser options that can be passed when launching any browser or when connecting to an existing browser instance.",source:"@site/versioned_docs/version-22.8.0/api/puppeteer.browserconnectoptions.md",sourceDirName:"api",slug:"/api/puppeteer.browserconnectoptions",permalink:"/api/puppeteer.browserconnectoptions",draft:!1,unlisted:!1,tags:[],version:"22.8.0",frontMatter:{sidebar_label:"BrowserConnectOptions"},sidebar:"api",previous:{title:"BoxModel",permalink:"/api/puppeteer.boxmodel"},next:{title:"BrowserContextEvent",permalink:"/api/puppeteer.browsercontextevent"}},d={},l=[{value:"Signature:",id:"signature",level:4},{value:"Properties",id:"properties",level:2}];function p(e){const r={a:"a",code:"code",h1:"h1",h2:"h2",h4:"h4",p:"p",pre:"pre",...(0,i.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h1,{id:"browserconnectoptions-interface",children:"BrowserConnectOptions interface"}),"\n",(0,t.jsx)(r.p,{children:"Generic browser options that can be passed when launching any browser or when connecting to an existing browser instance."}),"\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:"export interface BrowserConnectOptions\n"})}),"\n",(0,t.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsxs)("table",{children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Property"})}),(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Modifiers"})}),(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Type"})}),(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Description"})}),(0,t.jsx)("th",{children:(0,t.jsx)(r.p,{children:"Default"})})]})}),(0,t.jsxs)("tbody",{children:[(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"defaultviewport",children:"defaultViewport"})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:(0,t.jsx)(r.code,{children:"optional"})})}),(0,t.jsx)("td",{children:(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.a,{href:"/api/puppeteer.viewport",children:"Viewport"})," | null"]})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Sets the viewport for each page."})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"'{width: 800, height: 600}'"})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"ignorehttpserrors",children:"ignoreHTTPSErrors"})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:(0,t.jsx)(r.code,{children:"optional"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"boolean"})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Whether to ignore HTTPS errors during navigation."})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:(0,t.jsx)(r.code,{children:"false"})})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"protocol",children:"protocol"})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:(0,t.jsx)(r.code,{children:"optional"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:(0,t.jsx)(r.a,{href:"/api/puppeteer.protocoltype",children:"ProtocolType"})})}),(0,t.jsx)("td",{}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"'cdp'"})})]}),(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:(0,t.jsx)("span",{id:"protocoltimeout",children:"protocolTimeout"})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:(0,t.jsx)(r.code,{children:"optional"})})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"number"})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:"Timeout setting for individual protocol (CDP) calls."})}),(0,t.jsx)("td",{children:(0,t.jsx)(r.p,{children:(0,t.jsx)(r.code,{children:"180_000"})})})]}),(0,t.