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

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

问题描述:

我使用量角器测试Angular2应用.一切正常,我认为我在conf中没有进行任何更改,但最终结果是这样:

I use protractor to test Angular2 app. It was working fine and I think I didn't change nothing in conf but now it ends up with this:

...

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

...

我使用的是Mac OSX 10.11.4,Chrome 54.0.2840.71.

I work on a Mac OSX 10.11.4, Chrome 54.0.2840.71.

有什么建议吗?谢谢

---编辑26/10

--- EDIT 26/10

由于它取决于每个设置,因此似乎没有绝对的答案.主要思想是相应地更新量角器/chromedriver/webdriver-manager.

Since it depends on each one settings it looks like theres no absolute answer to this. The main idea is to update protractor/ chromedriver / webdriver-manager accordingly.

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

Saying that i now face another problem : every basic test i do, including ( for instance ) a browser.get() is failing with :

Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL

我不知道这是否是一个孤立的案例,是否适合这里(我使用jasmine2作为框架),所以我提出了另一个问题

I don't know if it's an isolated case and if it fits here (I use jasmine2 as framework) so I start another question here

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

I installed ChromeDriver v2.24 and stored it in: /usr/local/Cellar/chromedriver/2.24/bin and it fixed the error for me.