-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add support for end users changing the httpAgent. #4926
base: master
Are you sure you want to change the base?
Conversation
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)
lib/driverProviders/sauce.ts
Outdated
| this.config_.capabilities['build'] = this.config_.sauceBuild; | ||
|
|
||
| if (this.config_.sauceAgent) { | ||
| this.config_.httpAgent = this.config_.httpAgent; |
There was a problem hiding this comment.
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;
...?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
|
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. |
|
Following up on cbrown1982's question as we are also waiting on this to be accepted for a corporate proxy. Can this be accepted? |
|
Also following up, this feature is much needed. |
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.