【问题标题】:Chrome automation extension locked when running Selenium test case运行 Selenium 测试用例时 Chrome 自动化扩展被锁定
【发布时间】:2015-10-08 11:32:37
【问题描述】:

我在 Google Chrome 上运行我的测试用例时遇到了问题。警告是:Google Chrome 自动化扩展被锁定。我正在使用 Selenium Web 驱动程序来自动化我的测试用例,它在 Firefox 上运行没有任何问题。

此消息发生在 RIDE 上;

WebDriverException: Message: unknown error: unable to discover open
pages   (Driver info: chromedriver=2.16.333243
(0bfa1d3575fc1044244f21ddb82bf870944ef961),platform=Windows NT 6.0
x86_64)

20151008 14:19:31.499 :  FAIL : AttributeError: 'NoneType' object has
no attribute 'close'

这个问题有解决办法吗?

【问题讨论】:

    标签: javascript google-chrome selenium google-chrome-extension


    【解决方案1】:

    更新您的 ChromeDriver 并使用以下链接中的最新 Chrome 二进制文件:-

    http://chromedriver.storage.googleapis.com/index.html

    也试试这个:-

    将 Windows 电源选项中的“之后关闭显示”设置为“从不”。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-02-29
      • 2018-11-25
      • 2016-07-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-12
      相关资源
      最近更新 更多