【问题标题】:Python Selenium Chrome not running after OS upgrade操作系统升级后 Python Selenium Chrome 未运行
【发布时间】:2021-12-07 20:00:49
【问题描述】:

我最近将我的操作系统更改为 win11,之后我无法运行 selenium。 运行时,它显示为输出“selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at localhost:1111 from chrome not reachable”

我使用“chrome.exe --remote-debugging-port=1111”使用 CMD 打开 chrome,但它显示“'chrome.exe' 不是内部或外部命令、可运行程序或批处理文件。 "而不是要求管理员权限,然后像往常一样打开。

【问题讨论】:

标签: python selenium google-chrome automation webdriver


【解决方案1】:

我设法修复了 chrome 的错误。我在环境变量中添加了 chrome 应用程序路径,它起作用了。

C:\Program Files\Google\Chrome\Application\ 已修复 CMD 错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-07-30
    • 2020-08-27
    • 1970-01-01
    • 2010-10-27
    • 1970-01-01
    • 2012-02-05
    • 2020-05-13
    • 2015-07-31
    相关资源
    最近更新 更多