1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["12319"],{80462(e,t,n){n.r(t),n.d(t,{metadata:()=>r,default:()=>l,frontMatter:()=>o,contentTitle:()=>i,toc:()=>d,assets:()=>c});var r=JSON.parse('{"id":"api/puppeteer.puppeteernode.connect","title":"PuppeteerNode.connect() method","description":"This method attaches Puppeteer to an existing browser instance.","source":"@site/.generated-docs/next/api/puppeteer.puppeteernode.connect.md","sourceDirName":"api","slug":"/api/puppeteer.puppeteernode.connect","permalink":"/next/api/puppeteer.puppeteernode.connect","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"PuppeteerNode.connect"},"sidebar":"api","previous":{"title":"PuppeteerNode","permalink":"/next/api/puppeteer.puppeteernode"},"next":{"title":"PuppeteerNode.defaultArgs","permalink":"/next/api/puppeteer.puppeteernode.defaultargs"}}'),p=n(74848),s=n(28453);let o={sidebar_label:"PuppeteerNode.connect"},i="PuppeteerNode.connect() method",c={},d=[{value:"Signature",id:"signature",level:3},{value:"Parameters",id:"parameters",level:2}];function a(e){let t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",...(0,s.R)(),...e.components};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(t.header,{children:(0,p.jsx)(t.h1,{id:"puppeteernodeconnect-method",children:"PuppeteerNode.connect() method"})}),"\n",(0,p.jsx)(t.p,{children:"This method attaches Puppeteer to an existing browser instance."}),"\n",(0,p.jsx)(t.h3,{id:"signature",children:"Signature"}),"\n",(0,p.jsx)(t.pre,{children:(0,p.jsx)(t.code,{className:"language-typescript",children:"class PuppeteerNode {\n connect(options: ConnectOptions): Promise<Browser>;\n}\n"})}),"\n",(0,p.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n",(0,p.jsxs)("table",{children:[(0,p.jsx)("thead",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{children:(0,p.jsx)(t.p,{children:"Parameter"})}),(0,p.jsx)("th",{children:(0,p.jsx)(t.p,{children:"Type"})}),(0,p.jsx)("th",{children:(0,p.jsx)(t.p,{children:"Description"})})]})}),(0,p.jsx)("tbody",{children:(0,p.jsxs)("tr",{children:[(0,p.jsx)("td",{children:(0,p.jsx)(t.p,{children:"options"})}),(0,p.jsx)("td",{children:(0,p.jsx)(t.p,{children:(0,p.jsx)(t.a,{href:"/next/api/puppeteer.connectoptions",children:"ConnectOptions"})})}),(0,p.jsx)("td",{children:(0,p.jsx)(t.p,{children:"Set of configurable options to set on the browser."})})]})})]}),"\n",(0,p.jsx)(t.p,{children:(0,p.jsx)(t.strong,{children:"Returns:"})}),"\n",(0,p.jsxs)(t.p,{children:["Promise<",(0,p.jsx)(t.a,{href:"/next/api/puppeteer.browser",children:"Browser"}),">"]}),"\n",(0,p.jsx)(t.p,{children:"Promise which resolves to browser instance."})]})}function l(e={}){let{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,p.jsx)(t,{...e,children:(0,p.jsx)(a,{...e})}):a(e)}},28453(e,t,n){n.d(t,{R:()=>o,x:()=>i});var r=n(96540);let p={},s=r.createContext(p);function o(e){let t=r.useContext(s);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(p):e.components||p:o(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.