【问题标题】:What can be the reason that chrome is not opening after running simple code?运行简单代码后chrome无法打开的原因是什么?
【发布时间】:2021-10-17 08:07:14
【问题描述】:

我想在 Chrome 上运行自动化代码, 我下载了 chrome 驱动程序并在 C# 中打开了测试项目 但是在构建和编译下面的简单代码之后,chrome没有打开,只是cmd。 提前致谢。

【问题讨论】:

    标签: visual-studio selenium google-chrome driver


    【解决方案1】:

    请下载最新的chromedriver

    ChromeDriver 94.0.4606.61
    

    来自here。还要确保您的 chrome 浏览器是最新的。

    另外,我建议使用

    driver.Get("website URL here");
    

    而不是导航方法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-11-04
      • 2014-10-17
      • 1970-01-01
      • 2012-06-11
      • 1970-01-01
      • 1970-01-01
      • 2021-04-07
      相关资源
      最近更新 更多