Error:Error using own browser
Thank you for your wonderful work! But when I use the Edge browser as the default browser to execute the program, it can normally open the Edge browser, but there is no operation on the page, and the terminal has such an error:
`ERROR [browser] Failed to start a new Chrome instance.: BrowserType.connect_over_cdp: connect ECONNREFUSED ::1:9222 Call log:
retrieving websocket url from http://localhost:9222
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...`
My .env file is as follows, ` CHROME_PATH="C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" CHROME_USER_DATA="C:\Users\lyc\AppData\Local\Microsoft\Edge\User Data" CHROME_DEBUGGING_PORT=9222
CHROME_DEBUGGING_HOST=localhost
CHROME_PERSISTENT_SESSION=false `
So what should I do to make the edge browser or Baidu browser as the default browser? This is very important for Chinese researchers. Thank you again!
I found that this error seems to be caused by the remote debugging mode. When I use the edge browser, it seems that it cannot enter the remote debugging mode. But if I input a command in the terminal first, then the edge will into remote debugging mode, and the program will run normally.
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --remote-debugging-port=9222 --user-data-dir="C:\EdgeDebug" --no-first-run --disable-gpu
So how to make edge automatically enter remote debugging mode? My question is similar to question #409 .
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
Did you do this?