用Cypress打开Firefox浏览器浏览器全是白色

问题描述 投票:0回答:1

使用 Cypress 打开时,Firefox 浏览器保持全白。直到昨天一切都很好,从今天开始我就遇到了这个问题。

我在 Visual Studio Code 终端中启动了 Cypress

npx cypress open

Cypress 窗口打开。 我选择了火狐浏览器。 我按下了“在 Firefox 中打开 E2E 测试”按钮。

然后 Firefox 浏览器打开...但保持完全白色。

终端中有以下信息:

Still waiting to connect to Firefox, retrying in 1 second (attempt 42/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 43/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 44/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 45/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 46/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 47/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 48/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 49/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 50/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 51/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 52/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 53/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 54/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 55/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 56/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 57/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 58/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 59/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 60/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 61/62)
Still waiting to connect to Firefox, retrying in 1 second (attempt 62/62)

有关浏览器处理的其他信息: 在使用 Cypress 做其他事情之前,我打开了 Firefox 浏览器。一切都很好。 今天第一次启动 Cypress 时,我记得 Firefox 突然自动更新。当最终打开时,一切都是白色的。 以下所有其他尝试使用 Cypress 打开 irefox 的结果都相同:

Still waiting to connect to Firefox, retrying in 1 second (attempt 62/62)

版本:

  • 赛普拉斯 v12.14.0
  • Windows 10 企业版
  • Firefox 129.0(64 位)

还有人有同样的问题吗? 有已知的解决方案吗?

firefox cypress
1个回答
0
投票

由于问题是“昨天”出现的,并且您告诉您正在使用昨天发布的 Firefox 129,因此原因很可能是此版本中发生的某些更改。开发者发行说明 (https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/129#webdriver_bidi) 中提到的 WebDriver 有许多变化,即弃用 Chrome DevTools 协议,什么可能是罪魁祸首。据报道,它现在默认被禁用,并且可以通过

重新启用
remote.active-protocols=3

(或者只是

2
?)在
about:config
中偏好。

fxdx.dev 文章中的更多信息:在 Firefox 中弃用 CDP 支持:用 WebDriver BiDi 拥抱未来

© www.soinside.com 2019 - 2024. All rights reserved.