google-chrome - selenium.common.exceptions.WebDriverException : Message: unknown error: cannot connect to chrome at 127. 0.0.1:36059 Ubuntu 20 LTS

标签 google-chrome ubuntu selenium-chromedriver

所以,我的代码如下

import undetected_chromedriver.v2 as uc2
options = uc2.ChromeOptions()

browser=uc2.Chrome(options=options,enable_cdp_event=True,executable_path='/home/pablo/Escritorio/chromedriver') 
它会引发以下错误
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:34959
from session not created: This version of ChromeDriver only supports Chrome version 100
Current browser version is 99.0.4844.84
现在第一次发生我只是通过在 ubuntu 中运行来更新 chrome
sudo apt-get update
sudo apt-get upgrade
现在如果我这样做
google-chrome --version

>>Google Chrome 100.0.4896.60
然而,完全相同的错误正在发生。为什么它指向一个不再存在的 chrome 版本?

最佳答案

发生这种情况是因为您尚未更新浏览器。更新 Chrome。

关于google-chrome - selenium.common.exceptions.WebDriverException : Message: unknown error: cannot connect to chrome at 127. 0.0.1:36059 Ubuntu 20 LTS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71681599/

相关文章:

google-chrome - Chrome 在 RTL 语言网站上显示空白页面,直到调整窗口大小

python - fvwm-menu-desktop 在菜单创建期间挂起,使用 --get-menus 时出现 python 异常失败

apache - 使本地网站可供本地网络中的所有设备使用

java - 按回车键时停止 Linux 终端换行

ruby - ChromeDriver Ruby 禁用图像

javascript - 如何在 Google Chrome Javascript 控制台中编写和运行脚本?

sql - SSRS - 日期参数在 WebKit 浏览器中不显示日历控件

javascript - 有没有办法使用 Google Chrome 开发者工具过滤网络请求?

selenium-chromedriver - 使用 Chrome Canary 运行 WebDriver?

python - 如何使用 python 单击此带有 selenium 的链接?