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

Commit

Permalink
feat(webdriver): add support for selenium webdriver proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
vliloia authored and juliemr committed Jan 29, 2016
1 parent 3f3805f commit aa5ceb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/referenceConf.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ exports.config = {
// browser session. The selenium session is maintained after the test has
// completed. Ignored if seleniumAddress is null.
seleniumSessionId: null,
// The address of a proxy server to use for the connection to the
// Selenium Server. If not specified no proxy is configured. Looks like
// webDriverProxy: 'http://localhost:3128'
webDriverProxy: null,

// ---- 3. To use remote browsers via Sauce Labs -----------------------------
// If sauceUser and sauceKey are specified, seleniumServerJar will be ignored.
Expand Down
1 change: 1 addition & 0 deletions lib/driverProviders/driverProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ DriverProvider.prototype.getExistingDrivers = function() {
DriverProvider.prototype.getNewDriver = function() {
var builder = new webdriver.Builder().
usingServer(this.config_.seleniumAddress).
usingWebDriverProxy(this.config_.webDriverProxy).
withCapabilities(this.config_.capabilities);
if (this.config_.disableEnvironmentOverrides === true) {
builder.disableEnvironmentOverrides();
Expand Down

0 comments on commit aa5ceb5

Please sign in to comment.