Cypress – 重新连接到Chrome DevTools协议时发生错误

huangapple go评论74阅读模式
英文:

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.

Cypress – 重新连接到Chrome DevTools协议时发生错误

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.

huangapple
  • 本文由 发表于 2023年5月22日 10:09:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/76302675.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定