2727
2828'use strict'
2929
30- const fs = require ( 'fs' )
3130const http = require ( './http' )
32- const io = require ( './io' )
3331const portprober = require ( './net/portprober' )
3432const remote = require ( './remote' )
3533const webdriver = require ( './lib/webdriver' )
3634const { Browser, Capabilities } = require ( './lib/capabilities' )
3735const error = require ( './lib/error' )
3836const { getPath } = require ( './common/driverFinder' )
3937
40- const IEDRIVER_EXE = 'IEDriverServer.exe'
4138const OPTIONS_CAPABILITY_KEY = 'se:ieOptions'
4239const SCROLL_BEHAVIOUR = {
4340 BOTTOM : 1 ,
@@ -380,16 +377,6 @@ class Options extends Capabilities {
380377 }
381378}
382379
383- /**
384- * _Synchronously_ attempts to locate the IE driver executable on the current
385- * system.
386- *
387- * @return {?string } the located executable, or `null`.
388- */
389- function locateSynchronously ( ) {
390- return process . platform === 'win32' ? io . findInPath ( IEDRIVER_EXE , true ) : null
391- }
392-
393380function createServiceFromCapabilities ( capabilities ) {
394381 if ( process . platform !== 'win32' ) {
395382 throw Error (
@@ -400,7 +387,7 @@ function createServiceFromCapabilities(capabilities) {
400387 )
401388 }
402389
403- let exe = locateSynchronously ( )
390+ let exe = null // Let Selenium Manager find it
404391 var args = [ ]
405392 if ( capabilities . has ( Key . HOST ) ) {
406393 args . push ( '--host=' + capabilities . get ( Key . HOST ) )
@@ -440,7 +427,7 @@ class ServiceBuilder extends remote.DriverService.Builder {
440427 * the builder will attempt to locate the IEDriverServer on the system PATH.
441428 */
442429 constructor ( opt_exe ) {
443- super ( opt_exe || IEDRIVER_EXE )
430+ super ( opt_exe )
444431 this . setLoopback ( true ) // Required.
445432 }
446433}
@@ -496,4 +483,3 @@ exports.ServiceBuilder = ServiceBuilder
496483exports . Key = Key
497484exports . VENDOR_COMMAND_PREFIX = OPTIONS_CAPABILITY_KEY
498485exports . Behavior = SCROLL_BEHAVIOUR
499- exports . locateSynchronously = locateSynchronously
0 commit comments