Commit 845d762 1 parent 037ed73 commit 845d762 Copy full SHA for 845d762
File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ export class Chromedriver extends events.EventEmitter {
53
53
disableBuildCheck,
54
54
details,
55
55
isAutodownloadEnabled = false ,
56
+ reqBasePath,
56
57
} = args ;
57
58
this . _log = logger . getLogger ( generateLogPrefix ( this ) ) ;
58
59
@@ -68,12 +69,16 @@ export class Chromedriver extends events.EventEmitter {
68
69
this . bundleId = bundleId ;
69
70
this . executableVerified = false ;
70
71
this . state = Chromedriver . STATE_STOPPED ;
71
- this . jwproxy = new JWProxy ( {
72
+ /** @type {Record<string, any> } */
73
+ const proxyOpts = {
72
74
server : this . proxyHost ,
73
75
port : this . proxyPort ,
74
76
log : this . _log ,
75
- } ) ;
76
-
77
+ } ;
78
+ if ( reqBasePath ) {
79
+ proxyOpts . reqBasePath = reqBasePath ;
80
+ }
81
+ this . jwproxy = new JWProxy ( proxyOpts ) ;
77
82
if ( this . executableDir ) {
78
83
// Expects the user set the executable directory explicitly
79
84
this . isCustomExecutableDir = true ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export interface ChromedriverOpts {
18
18
*/
19
19
details ?: { info ?: { Browser : string } } ;
20
20
isAutodownloadEnabled ?: boolean ;
21
+ reqBasePath ?: string ;
21
22
}
22
23
23
24
export type ChromedriverVersionMapping = Record < string , string | null > ;
You can’t perform that action at this time.
0 commit comments