因此,我的代码如下
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版本?
1条答案
按热度按时间xxls0lw81#
出现这种情况是因为您尚未更新浏览器。更新Chrome。