簡體   English   中英

運行Selenium測試用例時,Chrome自動化擴展程序被鎖定

[英]Chrome automation extension locked when running Selenium test case

我在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'

這個問題有什么解決辦法嗎?

更新您的ChromeDriver並使用以下鏈接中的最新Chrome二進制文件:-

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

也嘗試一下:-

將Windows電源選項中的“關閉后顯示”設置為“從不”。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM