@@ -35,7 +35,7 @@ let debugMessagePrinted = false
35
35
* Determines the path of the correct Selenium Manager binary
36
36
* @returns {string }
37
37
*/
38
- function getBinary ( ) {
38
+ function getBinary ( ) {
39
39
const directory = {
40
40
darwin : 'macos' ,
41
41
win32 : 'windows' ,
@@ -48,7 +48,8 @@ function getBinary() {
48
48
49
49
let seleniumManagerBasePath = path . join ( __dirname , '..' , '/bin' )
50
50
51
- const filePath = process . env . SE_MANAGER_PATH || path . join ( seleniumManagerBasePath , directory , file )
51
+ const filePath = process . env . SE_MANAGER_PATH || path . join (
52
+ seleniumManagerBasePath , directory , file )
52
53
53
54
if ( ! fs . existsSync ( filePath ) ) {
54
55
throw new Error ( `Unable to obtain Selenium Manager at ${ filePath } ` )
@@ -69,8 +70,9 @@ function getBinary() {
69
70
* browser location
70
71
*/
71
72
72
- function driverLocation ( options ) {
73
- let args = [ '--browser' , options . getBrowserName ( ) , '--output' , 'json' ]
73
+ function driverLocation ( options ) {
74
+ let args = [ '--browser' , options . getBrowserName ( ) , '--language-binding' ,
75
+ 'javascript' , '--output' , 'json' ]
74
76
75
77
if ( options . getBrowserVersion ( ) && options . getBrowserVersion ( ) !== '' ) {
76
78
args . push ( '--browser-version' , options . getBrowserVersion ( ) )
@@ -139,7 +141,7 @@ function driverLocation(options) {
139
141
}
140
142
}
141
143
142
- function logOutput ( output ) {
144
+ function logOutput ( output ) {
143
145
for ( const key in output . logs ) {
144
146
if ( output . logs [ key ] . level === 'WARN' ) {
145
147
log_ . warning ( `${ output . logs [ key ] . message } ` )
0 commit comments