无法在Firefox中运行柏树9.7.0测试

发布于 2025-02-06 14:35:11 字数 598 浏览 0 评论 0原文

我的柏树测试按预期在Chrome,Electron和amp中进行。边缘。

但是,当我尝试针对Firefox运行这些测试时,我会收到以下错误:

柏树未能与Firefox建立连接。

这通常表明打开Firefox存在问题 浏览器。

错误:找不到CRI目标 在lazyasslogic

我正在使用柏树版本9.7.0,&使用以下命令:

"scripts": {
  "firefoxTest": "cypress run --browser firefox"
}

可能重要的一件事是我在某些测试中使用了failonstatuscode

我已经看过较早版本的柏树,例如此问题< /a>,但我相信这是在以后的版本中修复的。

有人可以告诉我问题可能是什么?

My Cypress tests run as expected in Chrome, Electron, & Edge.

However, when I try to run these tests against Firefox, I get the below error:

Cypress failed to make a connection to Firefox.

This usually indicates there was a problem opening the Firefox
browser.

Error: could not find CRI target
at lazyAssLogic

I am using Cypress version9.7.0, & using the below command:

"scripts": {
  "firefoxTest": "cypress run --browser firefox"
}

One thing that may be important is that I'm using failOnStatusCode in some of the tests.

I've seen there have been similar issues before with earlier versions of Cypress such as this issue, but I believe that has been fixed in a later release.

Can someone please tell me what the issue may be?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小红帽 2025-02-13 14:35:11

通过从Firefox(V 99)安装旧版本,我可以解决它。我从这个论坛中得到的想法 https://issuehint.com/issue.com/issue/issue/cypress-io-cypress-io-io /赛普拉斯/22086 下载较旧版本的链接来自此处 https://ftp.mozilla.org/pub/firefox/releases/99.0/win64/en-en-us/ 。希望这会有所帮助

By installing a older version from firefox (v 99) i could solve it. The idea i got from this forum https://issuehint.com/issue/cypress-io/cypress/22086 and the link for downloading an older version is from here https://ftp.mozilla.org/pub/firefox/releases/99.0/win64/en-US/. Hope this helps

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文