You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Cypress访问Proton Mail遇页面加载问题求助

Proton Mail

Cypress测试Proton Mail登录问题

我是Cypress新手,需完成Proton Mail网站的登录及相关测试,目标地址为https://account.proton.me/login。

首次访问该地址时出现安全错误:

Blocked a frame with origin "http://..." from accessing a cross-origin frame.

我按照相关建议将配置添加到cypress.config后,安全错误消失,但页面无法加载。不确定问题出在网站本身还是需要调整其他配置?

测试代码如下:

it('should navigate to Protonmail', () => {
   cy.visit('https://account.proton.me/login')
   login_proton(Cypress.env('test').email, Cypress.env('test').password)
})

内容的提问来源于stack exchange,提问作者Dids

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.05 06:07:04