This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -340,5 +340,10 @@ exports.config = {
340
340
341
341
// Turns off source map support. Stops protractor from registering global
342
342
// variable `source-map-support`. Defaults to `false`
343
- skipSourceMapSupport : false
343
+ skipSourceMapSupport : false ,
344
+
345
+ // Turns off WebDriver's environment variables overrides to ignore any
346
+ // environment variable and to only use the configuration in this file.
347
+ // Defaults to `true`
348
+ environmentOverrides : true
344
349
} ;
Original file line number Diff line number Diff line change @@ -32,10 +32,13 @@ DriverProvider.prototype.getExistingDrivers = function() {
32
32
* @return webdriver instance
33
33
*/
34
34
DriverProvider . prototype . getNewDriver = function ( ) {
35
- var newDriver = new webdriver . Builder ( ) .
36
- usingServer ( this . config_ . seleniumAddress ) .
37
- withCapabilities ( this . config_ . capabilities ) .
38
- build ( ) ;
35
+ var builder = new webdriver . Builder ( ) .
36
+ usingServer ( this . config_ . seleniumAddress ) .
37
+ withCapabilities ( this . config_ . capabilities ) ;
38
+ if ( this . config_ . environmentOverrides === false ) {
39
+ builder . disableEnvironmentOverrides ( ) ;
40
+ }
41
+ var newDriver = builder . build ( ) ;
39
42
this . drivers_ . push ( newDriver ) ;
40
43
return newDriver ;
41
44
} ;
You can’t perform that action at this time.
0 commit comments