You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError(`BrowserSession.ts :: launchBrowser :: Could not get webSocketDebuggerUrl from Chrome debugging API, port: ${this.browserPort}`)
52
+
console.log("BrowserSession.ts :: launchBrowser :: No webSocketDebuggerUrl found, falling back to regular launch mode")
53
+
this.isInteractive=false
54
+
}else{
55
+
this.browser=awaitconnect({
56
+
browserWSEndpoint,
57
+
})
45
58
}
46
-
47
-
this.browser=awaitconnect({
48
-
browserWSEndpoint,
49
-
})
50
59
}catch(error){
51
-
console.error(`BrowserSession.ts :: launchBrowser :: Failed to connect to browser, make sure you have a running browser with --remote-debugging-port=${this.browserPort}`,error)
52
-
thrownewError(`BrowserSession.ts :: launchBrowser :: Failed to connect to browser: ${error.message}, make sure you have a running browser with --remote-debugging-port=${this.browserPort}`)
60
+
console.log(`BrowserSession.ts :: launchBrowser :: Failed to connect to browser, falling back to regular launch mode. Error: ${error.message}`)
61
+
this.isInteractive=false
53
62
}
54
-
}else{
55
-
this.browser=awaitlaunch({
56
-
args: [
57
-
"--user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
58
-
],
59
-
defaultViewport: {
60
-
width: 1440,
61
-
height: 900
62
-
},
63
-
headless: false,// Always use non-headless mode
64
-
})
65
63
64
+
// If interactive mode failed, fall back to regular launch mode
0 commit comments