This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ let allowedNames = [
41
41
'seleniumSessionId' ,
42
42
'webDriverProxy' ,
43
43
'useBlockingProxy' ,
44
+ 'blockingProxyUrl' ,
44
45
'sauceUser' ,
45
46
'sauceKey' ,
46
47
'sauceAgent' ,
Original file line number Diff line number Diff line change @@ -104,6 +104,12 @@ export interface Config {
104
104
*/
105
105
useBlockingProxy ?: boolean ;
106
106
107
+ /**
108
+ * If specified, Protractor will connect to the Blocking Proxy at the given
109
+ * url instead of starting it's own.
110
+ */
111
+ blockingProxyUrl ?: string ;
112
+
107
113
// ---- 3. To use remote browsers via Sauce Labs -----------------------------
108
114
109
115
/**
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ export abstract class DriverProvider {
31
31
}
32
32
33
33
getBPUrl ( ) {
34
+ if ( this . config_ . blockingProxyUrl ) {
35
+ return this . config_ . blockingProxyUrl ;
36
+ }
34
37
return `http://localhost:${ this . bpRunner . port } ` ;
35
38
}
36
39
@@ -105,7 +108,7 @@ export abstract class DriverProvider {
105
108
*/
106
109
setupEnv ( ) : q . Promise < any > {
107
110
let driverPromise = this . setupDriverEnv ( ) ;
108
- if ( this . config_ . useBlockingProxy ) {
111
+ if ( this . config_ . useBlockingProxy && ! this . config_ . blockingProxyUrl ) {
109
112
// TODO(heathkit): If set, pass the webDriverProxy to BP.
110
113
return q . all ( [ driverPromise , this . bpRunner . start ( ) ] ) ;
111
114
}
You can’t perform that action at this time.
0 commit comments