“Runtime.executionContextCreated has invalid 'context” error when i run Protractor

后端 未结 9 2296
悲&欢浪女
悲&欢浪女 2020-12-03 16:41

I am getting this below Error while i run my protractor. And below is the error as shown in my webstorm console.

\"C:\\Program Files (x86)\\JetBrains

9条回答
  •  再見小時候
    2020-12-03 17:19

    Since I got the same issue and found this question, I'd like to add a bit more context: it is indeed a version problem between an 'old' chrome driver (2.22 in my case) and a 'newer' chrome release (54 in my case) like Sean answered.

    However there is no need to fiddle manually with config files or downloads.

    Instead just run

    npm update protractor -g
    

    To update protractor globally then

    webdriver-manager update
    

    To update the chrome driver. The newer chrome driver v2.25 is not yet included in the protractor package at the time of writing (you will get v2.24 instead) but it works fine with Chrome 54. Protractor is v4.09 at the time of writing. The same trick should work for future versions too!

提交回复
热议问题