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

Conversation

@DylanLacey
Copy link
Contributor

From version 3.0.0-beta-1, the Selenium-Webdriver package allows
the httpAgent to be configured.

This change adds httpAgent to the config file, as well as support
in driverProvider.

It also sets the httpAgent to sauceAgent, where sauceAgent is in use.
(Making the assumption that anyone who needs a sauceAgent for the
Sauce Labs REST API also needs it to connect to Sauce Labs for testing)

NB: I wasn't sure what kind of tests are appropriate beyond testing that the agent is set, and that that sets the agent... Happy to add that if desired.

From version 3.0.0-beta-1, the Selenium-Webdriver package allows
the httpAgent to be configured.

This change adds httpAgent to the config file, as well as support
in driverProvider.

It also sets the httpAgent to sauceAgent, where sauceAgent is in use.
(Making the assumption that anyone who needs a sauceAgent for the
Sauce Labs REST API also needs it to connect to Sauce Labs for testing)
this.config_.capabilities['build'] = this.config_.sauceBuild;

if (this.config_.sauceAgent) {
this.config_.httpAgent = this.config_.httpAgent;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • @DylanLacey - should this be:

    - this.config_.httpAgent = this.config_.httpAgent;
    + this.config_.httpAgent = this.config_.sauceAgent;

    ...?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It sure should. Updating that now.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DylanLacey - f15c7d8 seems to be missing this change?

@cbrown1983
Copy link

Any update on when this change will be pulled in? My company is waiting on this item to use the ondemand.saucelabs.com through a corporate proxy.

@bopes
Copy link

bopes commented Dec 3, 2018

Following up on cbrown1982's question as we are also waiting on this to be accepted for a corporate proxy. Can this be accepted?

@ccothran92
Copy link

Also following up, this feature is much needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants