Failed to initialize Playwright browser when i check "Use your existing browser instance"
I am stuck for hours at this error
ERROR [browser] Failed to initialize Playwright browser: To start chrome in Debug mode, you need to close all existing Chrome instances and try again otherwise we can not connect to the instance. WARNING [browser] Page load failed, continuing...
any help would be appriciated
I am also facing the same issue when I try to use Chrome browser
close all existing Chrome instances before runinng
Even after closing, same problem persists
You Can Manually Launch Chrome in Debug Mode
open cmd and run "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="C:\Temp\ChromeDebug"
use your own browser path. my one is: "C:\Program Files\Google\Chrome\Application\chrome.exe" then you can run the application and try
ERROR [browser] ❌ Failed to start a new Chrome instance: BrowserType.connect_over_cdp: connect ECONNREFUSED 127.0.0.1:9242 Call log:
retrieving websocket url from http://localhost:9242
ERROR [browser] Failed to initialize Playwright browser: To start chrome in Debug mode, you need to close all existing Chrome instances and try again otherwise we can not connect to the inst ance. ERROR [browser] ❌ Failed to create new browser session: To start chrome in Debug mode, you need to close all existing Chrome instances and try again otherwise we can not connect to the ins tance. (did the browser process quit?)
same here. Closed all chrome instances. Even closed Brave browser
You Can Manually Launch Chrome in Debug Mode
open cmd and run
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="C:\Temp\ChromeDebug"use your own browser path. my one is: "C:\Program Files\Google\Chrome\Application\chrome.exe" then you can run the application and try
This problem will not occur when using an existing browser and setting a separate user-data-dir at the same time. And I started chrome with the command line. It seems that configuring user-data-dir in the web-ui is ineffective