@@ -223,7 +223,7 @@ async function buildProfile(template, extensions) {
223
223
dir = await io . tmpDir ( )
224
224
if ( template ) {
225
225
await io . copyDir (
226
- /** @type {string } */ ( template ) ,
226
+ /** @type {string } */ ( template ) ,
227
227
dir ,
228
228
/ ( p a r e n t \. l o c k | l o c k | \. p a r e n t l o c k ) /
229
229
)
@@ -433,11 +433,11 @@ function findGeckoDriver() {
433
433
if ( ! exe ) {
434
434
throw Error (
435
435
'The ' +
436
- GECKO_DRIVER_EXE +
437
- ' executable could not be found on the current ' +
438
- 'PATH. Please download the latest version from ' +
439
- 'https://github.com/mozilla/geckodriver/releases/ ' +
440
- 'and ensure it can be found on your PATH.'
436
+ GECKO_DRIVER_EXE +
437
+ ' executable could not be found on the current ' +
438
+ 'PATH. Please download the latest version from ' +
439
+ 'https://github.com/mozilla/geckodriver/releases/ ' +
440
+ 'and ensure it can be found on your PATH.'
441
441
)
442
442
}
443
443
return exe
@@ -458,8 +458,8 @@ function findInProgramFiles(file) {
458
458
return exists
459
459
? files [ 0 ]
460
460
: io . exists ( files [ 1 ] ) . then ( function ( exists ) {
461
- return exists ? files [ 1 ] : null
462
- } )
461
+ return exists ? files [ 1 ] : null
462
+ } )
463
463
} )
464
464
}
465
465
@@ -593,7 +593,7 @@ class Driver extends webdriver.WebDriver {
593
593
* implementation.
594
594
* @override
595
595
*/
596
- setFileDetector ( ) { }
596
+ setFileDetector ( ) { }
597
597
598
598
/**
599
599
* Get the context that is currently in effect.
@@ -667,38 +667,6 @@ class Driver extends webdriver.WebDriver {
667
667
)
668
668
)
669
669
}
670
-
671
- /**
672
- * Creates a new WebSocket connection.
673
- * @return {!Promise<resolved> } A new CDP instance.
674
- */
675
- async createCDPConnection ( target ) {
676
- const caps = await this . getCapabilities ( )
677
- const seOptions = caps [ 'map_' ] . get ( 'se:options' ) || new Map ( )
678
- const vendorInfo =
679
- caps [ 'map_' ] . get ( 'moz:debuggerAddress' ) ||
680
- new Map ( )
681
- const debuggerUrl = seOptions [ 'cdp' ] || vendorInfo [ 'debuggerAddress' ]
682
- this . _wsUrl = await this . getWsUrl ( debuggerUrl , target )
683
-
684
- return new Promise ( ( resolve , reject ) => {
685
- try {
686
- this . _wsConnection = new WebSocket ( this . _wsUrl )
687
- } catch ( err ) {
688
- reject ( err )
689
- return
690
- }
691
-
692
- this . _wsConnection . on ( 'open' , ( ) => {
693
- this . _cdpConnection = new cdp . CdpConnection ( this . _wsConnection )
694
- resolve ( this . _cdpConnection )
695
- } )
696
-
697
- this . _wsConnection . on ( 'error' , ( error ) => {
698
- reject ( error )
699
- } )
700
- } )
701
- }
702
670
}
703
671
704
672
/**
0 commit comments