Skip to content

Commit 6e66b05

Browse files
committed
[js] Fix docs example on proxy.socks()
1 parent adb47d4 commit 6e66b05

File tree

1 file changed

+4
-1
lines changed
  • javascript/node/selenium-webdriver/lib

1 file changed

+4
-1
lines changed

javascript/node/selenium-webdriver/lib/proxy.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ exports.manual = function({ftp, http, https, bypass}) {
182182
* const proxy = require('selenium-webdriver/lib/proxy');
183183
*
184184
* let capabilities = new Capabilities();
185-
* capabilities.setProxy(proxy.socks('localhost:1234', 'bob', 'password'));
185+
* capabilities.setProxy(proxy.socks('localhost:1234'));
186+
*
187+
* // Or, to include authentication.
188+
* capabilities.setProxy(proxy.socks('bob:password@localhost:1234'));
186189
*
187190
*
188191
* @param {string} socksProxy The proxy host, in the form `hostname:port`.

0 commit comments

Comments
 (0)