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

后端 未结 9 2265
悲&欢浪女
悲&欢浪女 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:29

    2016-10-13: ChromeDriver v2.24 has been released which supports Chrome v52-54. (Thanks @Anton)


    2016-08-16: One of the recent updates to the Chrome Dev channel introduced a bug preventing ChromeDriver from properly starting. Having just worked around the same problem, I would suggest backing up your data and reverting to the Beta or Stable release channel of Chrome. See the Chrome Release Channels for more details on safely switching.


    Alternatively, switching to the Dev version of ChromeDriver should also fix the issue. From a closed issue on the chromedriver project:

    There are some Devtool changes in Chrome dev channel v54 which is not currently supported in Chromedriver stable v2.23. You may want to use dev version of Chromedriver which has the fix. It can be downloaded from chromedriver…/continuous/….zip

    Review the issue for the full link.

    0 讨论(0)
  • 2020-12-03 17:31

    I updated to Chrome Driver 2.25 which fixed the problem for me. This is a simple update:

    • Download the latest version from: https://sites.google.com/a/chromium.org/chromedriver/downloads
    • Unzip the contents (it's one file "chromedriver.exe").
    • Copy that over your existing chromedriver.exe
    • For me that was at: \node_modules\protractor\selenium

    That's it. I reran the tests and the pesky error went away.

    0 讨论(0)
  • 2020-12-03 17:33

    Try to reinstall webdriver-manager

    npm uninstall webdriver-manager -g
    npm install webdriver-manager -g
    

    Issue was fixed for me after I installed webdriver-manager: 10.2.8

    0 讨论(0)
提交回复
热议问题