我只想为cypress中的chrome设置代理。文档说明了如何全局设置set HTTP_PROXY=http://my-company-proxy.com
代理,但我只想在某些配置文件中为chrome设置。
答案 0 :(得分:0)
我看到您没有提到在cypress的配置文件中设置代理的选项,只能在操作系统(Windows或Linux)上进行设置。
https://docs.cypress.io/guides/references/proxy-configuration.html#View-proxy-settings-in-Cypress