Proxy Setup
You can tunnel two different types of request through a proxy:
- connection between your test script and the browser driver (or WebDriver endpoint)
- connection between the browser and the internet
Proxy Between Driver And Test
If your company has a corporate proxy (e.g. on http://my.corp.proxy.com:9090
) for all outgoing requests, follow the below steps to install and configure global-agent.
Install global-agent
- npm
- Yarn
- pnpm
npm install global-agent --save-dev
yarn add global-agent --dev
pnpm add global-agent --save-dev