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

Cypress visit加载失败,疑与代理设置相关求助

代理引发的网络异常问题排查(Cypress及游戏启动器故障)

错误截图

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.21 20:22:23