如何在Cypress中为Chrome浏览器设置代理

时间:2020-03-06 11:12:28

标签: google-chrome proxy cypress

我只想为cypress中的chrome设置代理。文档说明了如何全局设置set HTTP_PROXY=http://my-company-proxy.com代理,但我只想在某些配置文件中为chrome设置。

1 个答案:

答案 0 :(得分:0)

我看到您没有提到在cypress的配置文件中设置代理的选项,只能在操作系统(Windows或Linux)上进行设置。

https://docs.cypress.io/guides/references/proxy-configuration.html#View-proxy-settings-in-Cypress