量角器/ Selenium Webdriver:Runtime.executionContextCreated具有无效的"上下文"

seb*_*bap 11 selenium-chromedriver selenium-webdriver protractor

我使用量角器测试Angular2应用程序.它工作正常,我认为我没有改变任何东西,但现在它最终得到这个:

...

super(opt_error);
    ^
SessionNotCreatedError: session not created exception
from unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"4012.1","isDefault":true},"id":1,"name":"","origin":"://"}
  (Session info: chrome=54.0.2840.71)
  (Driver info: chromedriver=2.21.371459

...
Run Code Online (Sandbox Code Playgroud)

我在Mac OSX 10.11.4,Chrome 54.0.2840.71上工作.

有什么建议吗?谢谢

---编辑26/10

因为它取决于每个设置,所以看起来并不是绝对的答案.主要思想是相应地更新量角器/ chromedriver/webdriver-manager.

说我现在面临另一个问题:我做的每一个基本测试,包括(例如)一个browser.get()失败:

Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL
Run Code Online (Sandbox Code Playgroud)

我不知道它是否是一个孤立的案例,如果它适合这里(我使用jasmine2作为框架)所以我在这里开始另一个问题

Kat*_*sso 7

我安装了ChromeDriver v2.24并将其存储在:/usr/local/Cellar/chromedriver/2.24/bin中,它为我修复了错误.


归档时间:

查看次数:

11640 次

最近记录:

7 年,3 月 前