英文:
Cypress - There was an error reconnecting to the Chrome DevTools protocol
问题
我在 Cypress 中进行一项受控测试,在一些测试后,电子浏览器中会随机出现以下错误:
重新连接到 Chrome DevTools 协议时出错。
请重新启动浏览器。
在 Google Chrome 中运行时没有错误,但在电子浏览器中出现了问题。
由于 AWS 中的设置,我需要在电子浏览器中运行。
英文:
I'm running a controlled test in cypress and after some tests, this error is randomly occurring in the electron browser:
> There was an error reconnecting to the Chrome DevTools protocol.
> Please restart the browser.
In google chrome it is running without errors, but in electron it is breaking.
I need to run in electron because of settings in AWS.
答案1
得分: 3
我遇到了与版本12.12和12.13相同的问题。我通过降级到版本12.11来解决了这个问题。
我怀疑这个问题是由这个PR引起的:https://github.com/cypress-io/cypress/pull/26573/files
英文:
I had the same issue with version 12.12 and 12.13. I solved by downgrading to version 12.11.
I suspect the issue is caused by this PR https://github.com/cypress-io/cypress/pull/26573/files
答案2
得分: 0
升级到最新的Cypress版本(写作时为12.9.0 > 13.2.0)解决了我的问题。我认为Chrome已自动更新到最新版本(117.0.x),导致了破坏性变化。
英文:
Updating to latest Cypress version (12.9.0 > 13.2.0 at the time of writing) fixed the issue for me. I think Chrome had been updated automatically to the latest version (117.0.x), causing a breaking change.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论