This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,12 @@ export class Direct extends DriverProvider {
71
71
}
72
72
73
73
let chromeService = new ChromeServiceBuilder ( chromeDriverFile ) . build ( ) ;
74
- driver = ChromeDriver . createSession ( new Capabilities ( this . config_ . capabilities ) , chromeService ) ;
74
+ // driver = ChromeDriver.createSession(new Capabilities(this.config_.capabilities),
75
+ // chromeService);
76
+ // TODO(ralphj): fix typings
77
+ driver = require ( 'selenium-webdriver/chrome' )
78
+ . Driver . createSession (
79
+ new Capabilities ( this . config_ . capabilities ) , chromeService ) ;
75
80
break ;
76
81
case 'firefox' :
77
82
if ( this . config_ . firefoxPath ) {
@@ -80,8 +85,8 @@ export class Direct extends DriverProvider {
80
85
81
86
// TODO(cnishina): Add in a service builder with marionette. Direct connect
82
87
// currently supports FF legacy version 47.
83
- driver =
84
- FirefoxDriver . createSession ( new Capabilities ( this . config_ . capabilities ) ) ;
88
+ driver = require ( 'selenium-webdriver/firefox' )
89
+ . Driver . createSession ( new Capabilities ( this . config_ . capabilities ) ) ;
85
90
break ;
86
91
default :
87
92
throw new BrowserError (
Original file line number Diff line number Diff line change @@ -43,9 +43,8 @@ export abstract class DriverProvider {
43
43
getNewDriver ( ) {
44
44
let builder : Builder ;
45
45
if ( this . config_ . useBlockingProxy ) {
46
- builder = new Builder ( )
47
- . usingServer ( this . getBPUrl ( ) )
48
- . withCapabilities ( this . config_ . capabilities ) ;
46
+ builder =
47
+ new Builder ( ) . usingServer ( this . getBPUrl ( ) ) . withCapabilities ( this . config_ . capabilities ) ;
49
48
} else {
50
49
builder = new Builder ( )
51
50
. usingServer ( this . config_ . seleniumAddress )
You can’t perform that action at this time.
0 commit comments