代码之家  ›  专栏  ›  技术社区  ›  Seekeer

.净铬驱动程序。exe 2.36已停止使用chrome 64无法修复

  •  1
  • Seekeer  · 技术社区  · 7 年前

    去年一切正常,但几天前当我尝试运行程序时,遇到了一个恼人的错误:“chromedriver.exe已停止工作”。例外情况是: OpenQA.Selenium.WebDriverException: 'A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:59589/session/53a8deb4fccfe20b9b1636e3577a4eff/elements. The status of the exception was ReceiveFailure

    驱动程序执行第一个命令-导航到url,但当我试图从驱动程序获取一些元素时,出现了该错误。

    我得到了最新的Chrome64.0.3282.186、chromedriver 2.36.0和webdriver 3.10.00 nuget软件包。

    当我将浏览器降级到61.0时,一切正常。 我有论点:

    opt.AddArgument("start-maximized");
    opt.AddArgument("--disable-popup-blocking");
    opt.AddArgument("--disable-notifications");
    opt.AddArgument("--mute-audio");
    
    opt.AddArgument("--disable-blink-features");
    opt.AddArgument("--disable-app-list-dismiss-on-blur");
    opt.AddArgument("--disable-core-animation-plugins");
    

    评论它并没有改变任何事情。

    我如何解决这些奇怪的问题?

    1 回复  |  直到 7 年前
        1
  •  1
  •   Seb    7 年前

    卸载webdriver和nuget包,然后再次安装。

    请务必按以下顺序安装:

    1. 安装软件包Selenium。Web驱动程序

    2. 安装软件包Selenium。WebDriver。镀铬驱动器