WebDriver playback in Selenium IDE requires the Standalone Selenium Server. The Standalone Selenium Server in turn requires a few supporting pieces of software. I have decided to break the whole process into individual parts to make it easier on the eyes. So onwards to the third step of getting the Internet Explorer Driver Server.
Getting the Internet Explorer Driver Server
This post deals with installing the Internet Explorer Driver Server. The Internet Explorer Driver Server or IEDriverServer was introduced as a result of an improvement in the architecture of the Internet Explorer driver. Earlier, the Standalone Selenium Server was sufficient to run tests on Internet Explorer. Now, one extra step of downloading the IEDriverServer is required if you want to run tests using WebDriver on Internet Explorer, but benefits are well worth the extra step. You only need the IEDriverServer if you are planning to run tests using Internet Explorer on Windows.
Download the zip file from Selenium downloads page
There are two flavours of the IEDriverServer, viz., 32-bit and 64-bit. The one you need depends on the edition of Internet Explorer you are planning to use. Note that it is not the Operating System type. A 64-bit Windows version can have 32-bit Internet Explorer or 64-bit Internet Explorer or even both. If you do not know or do not care, I would recommend getting the 32-bit version.
Go to the Selenium download page and download the file that starts with IEDriverServer. The 32-bit version has Win32 as part of the name and the 64-bit version has x64. As of writing it is IEDriverServer_Win32_2.28.0.zip for the 32-bit version and IEDriverServer_x64_2.28.0.zip for the 64-bit version. Get one or both based on what you need. I would recommend that you save the zip files in the same folder that you used to save the Standalone Selenium Server. The zip file contains the actual driver named IEDriverServer.exe. Since the name of driver in the zip file is the same for both the IEDriverServer, I would recommend that you extract and rename it immediately. For the 32-bit version, extract the IEDriverServer.exe from the IEDriverServer_Win32_2.28.0.zip file and rename it to IEDriverServer32.exe. Similarly for the 64-bit version, extract the IEDriverServer.exe from the IEDriverServer_x64_2.28.0.zip file and rename it to IEDriverServer64.exe. Once you have the extracted driver file, you can delete the original zip file.
It is a good thing to periodically get the latest version as it contains support for the latest versions of browsers.
Passing the right IEDriverServer to the Selenium Server
The IEDriverServer is used directly by the Standalone Selenium Server, so you need to have Standalone Selenium Server installed. If you have not done it yet, check my earlier post. You can pass the location and name of the IEDriverServer to Standalone Selenium Server when you start it. Open a command prompt or terminal window and change to the folder where you have downloaded the IEDriverServer and the selenium-server-standalone jar file. Then start the selenium server with the following command on a single line.
java -jar selenium-server-standalone-2.28.0.jar -Dwebdriver.ie.driver=.\IEDriverServer32.exe
The selenium-server-standalone-2.28.0.jar should be changed to the name of the jar file you have downloaded and the IEDriverServer32.exe to the one you are using. If all went well you should see a bunch of messages including one like the following.
Setting system property webdriver.ie.driver to .\IEDriverServer32.exe
If you see this message, you can shut down the server by pressing ctrl+c on Windows or closing the command window.
You should now be ready to go to the next step and actually start running tests using WebDriver playback from Selenium IDE.
Selenium-IDE replays my testscript with WebDriver using firefox and internet explorer sucessfully.
Hi,
I am glad to hear that.
Cheers,
Samit
Just set up a IEwebdriver Server on Windows 7. When I try to replay my test, that runs fine in Selenium IDE, the IE 11 opens the webpage correctly, but then throws the following error.
06:12:21.953 INFO – Got result: ERROR,Element id=account not found on session 8e
46744e-6836-4350-aa9d-8dd3305e91df
06:12:21.984 INFO – Command request: isVisible[id=account, account] on session 8
e46744e-6836-4350-aa9d-8dd3305e91df
06:12:22.234 INFO – Got result: ERROR,Element id=account not found on session 8e
46744e-6836-4350-aa9d-8dd3305e91df
06:12:22.265 INFO – Command request: isVisible[id=account, account] on session 8
e46744e-6836-4350-aa9d-8dd3305e91df
06:12:22.515 INFO – Got result: ERROR,Element id=account not found on session 8e
46744e-6836-4350-aa9d-8dd3305e91df
Replay with webdriver is a very useful feature. I wonder if you could help me figure out why this fails.
Hi Alice,
Please log a bug officially with a minimal test case that can be used to reproduce the issue and I will look into it.
Cheers,
Samit
Hi Samit,
Thanks for all you’ve done and continue to do for Selenium – in particular IDE as I do not have the scripting knowledge to fully utilize the Selenium/WebDriver 2.0 yet.
I want to confirm some things regarding the use of WebDriver Playback in Selenium IDE. For IE, the IEDriverServer is required to run tests, but for Chrome, the only components necessary to run test cases/suites are:
1. the newest Selenium IDE version
2. Java installed, configured and running
3. and the standalone selenium server….correct?
I don’t need chromedriver or any type of extra component – like IEDriverServer in Internet Explorer?
Hi S.,
You require the chrome driver and chrome for WebDriver playback in Google Chrome.
Cheers,
Samit