Cypress visit加载失败,疑与代理设置相关求助
代理引发的网络异常问题排查(Cypress及游戏启动器故障)
错误截图

测试代码
class MapsLocators { constructor(){ this.input = '[id = "searchboxinput"]'; this.cityTitle = '[class = "DUwDvf fontHeadlineLarge"]'; this.timeout = Cypress.config('defaultCommandTimeout'); } searchPlace(place){ cy.get(this.input).type(place + '{enter}'); } validateCityTitle(title){ cy.get(this.cityTitle, { timeout: this.timeout }).should('exist'); cy.get(this.cityTitle).should('have.text', title); } } describe('Google Maps automation', () => { const mapsLocators = new MapsLocators(); const city = 'Tokio'; beforeEach(() => { cy.visit('https://www.google.com.ar/maps/'); }); it('Go to Tokyo', () => { mapsLocators.searchPlace(city); mapsLocators.validateCityTitle(city); }); });
问题背景
此前所有功能均正常,使用工作环境中VPN之外的额外代理服务器后,即使关闭代理,设备仍出现多类网络相关异常:
- Cypress脚本执行
cy.visit()时无法加载目标页面 - EA应用无法启动
- Epic Games启动器无法正常加载账户配置
疑问
该问题是否与代理有关?若无法解决将不得不重装系统,恳请提供排查方向及解决办法。
内容的提问来源于stack exchange,提问作者Oto
相关产品推荐
相关产品推荐

