* Creates a proxy configuration for a socks proxy. * * __Example:__ * * const {Capabilities} = require('selenium-webdriver'); * const proxy = require('selenium-webdriver/lib/proxy'); * * let capabilities = new Capabilities(); * capabilities.setProxy(proxy.socks('localhost:123
(socksProxy, socksVersion = undefined)
| 176 | * @see https://en.wikipedia.org/wiki/SOCKS |
| 177 | */ |
| 178 | function socks(socksProxy, socksVersion = undefined) { |
| 179 | return /** @type {!Config} */ ({ |
| 180 | proxyType: Type.MANUAL, |
| 181 | socksProxy, |
| 182 | socksVersion, |
| 183 | }) |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * Configures WebDriver to configure the browser proxy using the PAC file at |
nothing calls this directly
no outgoing calls
no test coverage detected