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

如何阻止chromedriver自动打开“设置”选项卡?

  •  3
  • shush  · 技术社区  · 7 年前

    当我运行ruby watir脚本打开chrome浏览器时,它还会打开另一个chrome选项卡,其中包含“address”chrome://settings/help“并将重点放在这一点上。我如何才能禁用创建此类附加选项卡?

    2 回复  |  直到 7 年前
        1
  •  5
  •   Delster Tañedo    7 年前

    更新:我将chromedriver更新为 2.33 selenium standalone包使用的和selenium服务器的配置。该选项卡不再显示。您可以尝试将ruby脚本使用的chromedriver更新为2.33。

    如果你需要我的Chrome版本,它目前是Mac OS的62.0.3202.89(64位)。

    我在nodejs中使用selenium自动化时遇到了这个问题。我尝试了新的chromedriver 2.33,但问题仍然存在。我刚刚把我的Chrome浏览器降到了59版本,直到它被修复。

        2
  •  2
  •   Diego Sanjuan    7 年前

    这已使用最新版本ChromeDriver 2.33修复。你可以从 https://sites.google.com/a/chromium.org/chromedriver/downloads

    上次更新chrome后,我们也遇到了同样的问题:62.0.3202.89