MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / socks

Function socks

javascript/selenium-webdriver/lib/proxy.js:178–184  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

176 * @see https://en.wikipedia.org/wiki/SOCKS
177 */
178function 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected