Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit aa5ceb5

Browse files
vliloiajuliemr
authored andcommitted
feat(webdriver): add support for selenium webdriver proxy
1 parent 3f3805f commit aa5ceb5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/referenceConf.js

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ exports.config = {
5959
// browser session. The selenium session is maintained after the test has
6060
// completed. Ignored if seleniumAddress is null.
6161
seleniumSessionId: null,
62+
// The address of a proxy server to use for the connection to the
63+
// Selenium Server. If not specified no proxy is configured. Looks like
64+
// webDriverProxy: 'http://localhost:3128'
65+
webDriverProxy: null,
6266

6367
// ---- 3. To use remote browsers via Sauce Labs -----------------------------
6468
// If sauceUser and sauceKey are specified, seleniumServerJar will be ignored.

lib/driverProviders/driverProvider.js

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ DriverProvider.prototype.getExistingDrivers = function() {
3434
DriverProvider.prototype.getNewDriver = function() {
3535
var builder = new webdriver.Builder().
3636
usingServer(this.config_.seleniumAddress).
37+
usingWebDriverProxy(this.config_.webDriverProxy).
3738
withCapabilities(this.config_.capabilities);
3839
if (this.config_.disableEnvironmentOverrides === true) {
3940
builder.disableEnvironmentOverrides();

0 commit comments

Comments
 (0)