Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

IE Driver - Getting error 'The path to the driver executable must be set' even though it is set #8726

Closed
lukeis opened this issue Mar 4, 2016 · 2 comments
Assignees

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 8726

Thanks in advance for reading through and appreciate your help.

Test Environment:
Selenium webdriver version - Java 2.48.2 
Selenium Standalone Server - selenium-server-standalone-2.48.2.jar
OS Host machine and remote machine both - Windows 7 Professional - 32 bit
IE - 8 - precisely 8.0.7600.16358
Internet Explorer Driver Server - 2.48.0 32 bit
-------------------------------------
Settings done in IE:
Internet Options --> Security --> "Enable Protected Mode" on ALL zones is checked 
Tabs -> Settings -> Enable Tabbed Browsing - Unchecked
-------------------------------------
JDK on Host Machine and Remote Machine 
>java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode, sharing)
-------------------------------------
On remote machine
c:/automation folder has standalone server and IE driver
IEDriverServer.exe - 32 bit
selenium-server-standalone-2.48.2.jar

Start the server using below command
a)
java -DWebdriver.ie.driver=C:\automation\IEDriverServer.exe -jar selenium-server-standalone-2.48.2.jar
-timeout=20 -browserTimeout=60

Also tried as 
b)
java -DWebdriver.ie.driver=IEDriverServer.exe -jar selenium-server-standalone-2.48.2.jar
-timeout=20 -browserTimeout=60

In both cases a) & b) above ensured path of IEDriverServer.exe is added to system PATH
variable as
C:\automation\IEDriverServer.exe

After the above run the test from Host machine

--------------------------------
Test:
Simple test to open IE browser and launch Google and enter text 'selenium' in search
box and click Search button.
Refer attached java test class for the same.
Please replace remote machine IP address with your own remote machine IP.

Note same errors I observed on another remote machine with Windows 7 Ultimate 64 bit
and IE version 10
In this case ensured to use IEDriverServer.exe - 64 bit

------------------------------------
Error I am getting is as below:

17:46:17.597 INFO - Launching a standalone Selenium Server
17:46:17.822 INFO - Java: Oracle Corporation 24.45-b08
17:46:17.823 INFO - OS: Windows 7 6.1 x86
17:46:17.856 INFO - v2.48.0, with Core v2.48.0. Built from revision 41bccdd
17:46:17.984 INFO - Driver class not found: com.opera.core.systems.OperaDriver
17:46:17.984 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
17:46:18.265 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
17:46:18.266 INFO - Selenium Server is up and running
17:46:32.475 INFO - Executing: [new session: Capabilities [{platform=WINDOWS, ensureCleanSession=true,
browserName=inter
net explorer, version=}]])
17:46:32.494 INFO - Creating a new session for Capabilities [{platform=WINDOWS, ensureCleanSession=true,
browserName=int
ernet explorer, version=}]
17:46:32.540 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetExcep
tion
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: 'remote-PC', ip: '192.168.0.105', os.name: 'Windows 7', os.arch:
'x86', os.version: '6.1', java.version
: '1.7.0_45'
Driver info: driver.version: unknown
        at java.util.concurrent.FutureTask.report(Unknown Source)
        at java.util.concurrent.FutureTask.get(Unknown Source)
        at org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:183)
        at org.openqa.selenium.remote.server.DefaultSession.<init>(DefaultSession.java:119)
        at org.openqa.selenium.remote.server.DefaultSession.createSession(DefaultSession.java:95)
        at org.openqa.selenium.remote.server.DefaultDriverSessions.newSession(DefaultDriverSessions.java:124)
        at org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:58)
        at org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:1)
        at org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:111)
        at org.openqa.selenium.remote.server.JsonHttpCommandHandler.handleRequest(JsonHttpCommandHandler.java:175)
        at org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverServlet.java:202)
        at org.openqa.selenium.remote.server.DriverServlet.doPost(DriverServlet.java:164)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
        at org.openqa.selenium.remote.server.DriverServlet.service(DriverServlet.java:130)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.openqa.jetty.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
        at org.openqa.jetty.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:680)
        at org.openqa.jetty.jetty.servlet.ServletHandler.handle(ServletHandler.java:571)
        at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1526)
        at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1479)
        at org.openqa.jetty.http.HttpServer.service(HttpServer.java:920)
        at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
        at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
        at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
        at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
        at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:358)
        at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:537)
Caused by: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: 'remote-PC', ip: '192.168.0.105', os.name: 'Windows 7', os.arch:
'x86', os.version: '6.1', java.version
: '1.7.0_45'
Driver info: driver.version: unknown
        at org.openqa.selenium.remote.server.DefaultDriverProvider.callConstructor(DefaultDriverProvider.java:113)
        at org.openqa.selenium.remote.server.DefaultDriverProvider.newInstance(DefaultDriverProvider.java:97)
        at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60)
        at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222)
        at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.openqa.selenium.remote.server.DefaultDriverProvider.callConstructor(DefaultDriverProvider.java:103)
        ... 9 more
Caused by: java.lang.IllegalStateException: The path to the driver executable must
be set by the webdriver.ie.driver sys
tem property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver.
The latest v
ersion can be downloaded from http://selenium-release.storage.googleapis.com/index.html
        at com.google.common.base.Preconditions.checkState(Preconditions.java:197)
        at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:109)
        at org.openqa.selenium.ie.InternetExplorerDriverService.access$0(InternetExplorerDriverService.java:1)
        at org.openqa.selenium.ie.InternetExplorerDriverService$Builder.findDefaultExecutable(InternetExplorerDriverServ
ice.java:167)
        at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:296)
        at org.openqa.selenium.ie.InternetExplorerDriver.setupService(InternetExplorerDriver.java:251)
        at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:172)
        at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:150)
        ... 14 more
17:46:32.565 WARN - Exception: The path to the driver executable must be set by the
webdriver.ie.driver system property;
 for more information, see https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver.
The latest version can be
 downloaded from http://selenium-release.storage.googleapis.com/index.html

Reported by vivektests on 2015-11-25 12:46:20


- _Attachment: [RemoteTestExecution.java](https://storage.googleapis.com/google-code-attachments/selenium/issue-8726/comment-0/RemoteTestExecution.java)_
@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Guys any help please?

Reported by vivektests on 2015-12-01 05:20:00

@lukeis lukeis self-assigned this Mar 4, 2016
@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Oops, just realized the issue Status is marked Invalid.
Could not understand why it is marked invalid and closed and it is not showing who
marked it so.

I have already referred issues already posted related to this and tried the settings
and cross checked and still facing the issue hence posted this.

Please help.
Thanks

Reported by vivektests on 2015-12-01 05:31:58

@lukeis lukeis closed this as completed Mar 4, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant