This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ let allowedNames = [
46
46
'sauceKey' ,
47
47
'sauceAgent' ,
48
48
'sauceBuild' ,
49
+ 'sauceSeleniumUseHttp' ,
49
50
'sauceSeleniumAddress' ,
50
51
'browserstackUser' ,
51
52
'browserstackKey' ,
Original file line number Diff line number Diff line change @@ -136,6 +136,13 @@ export interface Config {
136
136
* Use sauceBuild if you want to group test capabilites by a build ID
137
137
*/
138
138
sauceBuild ?: string ;
139
+ /**
140
+ * If true, Protractor will use http:// protocol instead of https:// to
141
+ * connect to Sauce Labs defined by sauceSeleniumAddress.
142
+ *
143
+ * default: false
144
+ */
145
+ sauceSeleniumUseHttp ?: boolean ;
139
146
/**
140
147
* Use sauceSeleniumAddress if you need to customize the URL Protractor
141
148
* uses to connect to sauce labs (for example, if you are tunneling selenium
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ export class Sauce extends DriverProvider {
63
63
this . config_ . capabilities [ 'username' ] = this . config_ . sauceUser ;
64
64
this . config_ . capabilities [ 'accessKey' ] = this . config_ . sauceKey ;
65
65
this . config_ . capabilities [ 'build' ] = this . config_ . sauceBuild ;
66
- let auth = 'https://' + this . config_ . sauceUser + ':' + this . config_ . sauceKey + '@' ;
66
+ let protocol = this . config_ . sauceSeleniumUseHttp ? 'http://' : 'https://' ;
67
+ let auth = protocol + this . config_ . sauceUser + ':' + this . config_ . sauceKey + '@' ;
67
68
this . config_ . seleniumAddress = auth +
68
69
( this . config_ . sauceSeleniumAddress ? this . config_ . sauceSeleniumAddress :
69
70
'ondemand.saucelabs.com:443/wd/hub' ) ;
You can’t perform that action at this time.
0 commit comments