Selenium WebDriver Setup and Installation with Eclipse

By Vijay

By Vijay

Image
I'm Vijay, and I've been working on this blog for the past 20+ years! I’ve been in the IT industry for more than 20 years now. I completed my graduation in B.E. Computer Science from a reputed Pune university and then started my career in…

Learn about our editorial policies.
Updated May 9, 2025

In the previous tutorial, we introduced the basic architecture and features of WebDriver. This is the 9th tutorial in the Selenium Tutorial Training Series.

In this tutorial, we will discuss the installation procedure to get started with WebDriver initiating from scratch. We will also discuss the diverse range of drivers provided by WebDriver, each catering to different testing and environmental needs.

To use WebDriver for scripting, some prerequisites need to be in a place like the basic environment setup. In this series, we will use Java as a programming language within our sample examples. Thus, let us kick start with the Java installation.

Setting up and Installing WebDriver in Eclipse

WebDriver Entire Setup And Installation With Eclipse

Java Installation

Step #1: Go to Oracle’s official site – “JAVA download”, and download Java Platform, Standard Edition. All the recent releases are available on the page.

download Java Platform

Step #2: As soon as you click on the Download button, the following screen will appear. Accept the License Agreement for Java installation and choose amongst the various cataloged Java Development Kit’s. Select the one that best suits your system configuration.

License Agreement

Remember to download JDK (Java development kit). The kit comes with a JRE (Java Runtime Environment). Thus, the user isn’t required to download and install the JRE separately.

Eclipse IDE Installation

Step #1: Go to Eclipse’s official website and navigate to its download page – Eclipse download. Download Eclipse IDE for Java EE developers. All the recent releases are available on the page.

Make sure you opt for and download the appropriate Eclipse IDE as per your system configuration. There are two download links available for the 64-bit Windows operating system and 32-bit Windows operating system.

download the appropriate Eclipse IDE

Step #2: As soon as we click on the download link, the user is redirected to the fresh page securing information about the current download. Click on the download icon and you are done.

webdriver installtion

It may take a few minutes before you can download the complete zip folder.

Step #3: Once downloaded, copy the folder and place it in the desired location on your file system.

copy the folder

Step #4: Extract the zipped folder, a folder named Eclipse can be seen. The folder embodies all the required application and source files.

Extract the zipped folder

Step #5: Launch the Eclipse IDE using “eclipse.exe” residing inside the eclipse folder. Refer to the above illustration for the same.

Step #6: The application will prompt you to specify the workspace location. Workspace is the location where all your eclipse projects will be residing. Enter/Browse the desired location or the user can simply opt for the default location and click on the OK button.

specify the workspace location

Configuring WebDriver

As we will use Java as the programming language for this series and to create test scripts in Java, we would have to introduce language-specific client drivers. Thus, let us begin with the downloading of Selenium Java Client Libraries.

Download the Selenium Java Client Libraries

Step #1: Go to Selenium’s official website and navigate to its download page – “http://docs.seleniumhq.org/download/”. Refer to the section in the below illustration where you can find Client Libraries listed for distinct programming languages. Click on the download link for Java Client Library.

Client Libraries

It may take a few minutes before you can download the complete zipped folder.

Step #2: Once downloaded, copy the folder and place it in the desired location on your file system.

Step #3: Extract the zipped folder, a folder named “Selenium-2.41.0.zip“ can be seen. The folder embodies all the required jar files which enable users to create test scripts in Java.

Thus, these libraries can be configured in Eclipse IDE.

Configuring Libraries with Eclipse IDE

Step #1: Navigate towards Eclipse IDE. Create a new Java-based project following File -> New -> Java Project. Refer to the following figure for the same.

Navigate towards Eclipse IDE

Step #2: Provide a user-defined name for your Java Project. Let us provide the name as Learning_Selenium and Click on the Finish Button. The package explorer panel on the left side of the screen displays the newly created project.

Step #3: Create a new Java class named as “First_WebdriverClass” under the source folder by right-clicking on it and navigating to New -> class.

Step #4: Now let us configure the libraries into our Java project. For this, select the project and Right click on it. Select “Properties” within the listed options. The following screen appears. Select “Java Build Path” from the options.

Java Build Path

Step #5: By default, the “Libraries” tab is opened. If not, click on the “Libraries” tab. Then, click on the “Add External Jars…” button. Browse to the location where we have saved the extracted folder for Java Client Libraries.

Step #6: Select all the JAR files present in the “selenium-java-2.41.0” folder and click on the open button within the dialogue box. The properties dialogue box should look like the below illustration.

 Select all the JAR files

Step #7: Click on the “OK” button within the dialogue box to complete the configuration part of the Selenium Libraries in our Java project.

The project will look like this:

Selenium Libraries

Available Drivers                                                                                                  

There are several driver classes available in WebDriver, each catering to a specific web browser. Each browser has a different driver implementation in WebDriver.

In WebDriver, a few of the browsers can be automated directly whereas some of the web browsers require an external entity to automate and execute the test script. This external entity is known as the Driver Server. Thus, the user is required to download the Driver Server for different web browsers.

Notice that there is a separate Driver Server for each of the web browsers and the user cannot use one Driver Server for web browsers other than the one it is designated for.

Below is the list of available web browsers and their corresponding Server Drivers.

available web browsers

Conclusion

In this tutorial, we accustom you to all the environment setup and installation to be done before the creation of WebDriver test scripts.

Here are the cruxes of this article:

  • Prior to the creation of WebDriver-based test scripts, a few utilities and packages are required to be installed.
  • Install JDK (Java Development Kit). Remember, the user is not supposed to install JRE separately because it is distributed bundled with the kit.
  • Download Eclipse IDE. The user is only required to download the package and he/she is ready. No other installation is required with Eclipse.
  • Download Java Client Libraries to create the test script in Java programming language.
  • Launch eclipse using eclipse.exe. Select the workspace where you would want to save the projects.
  • Create a new Java project in the eclipse. Create a new Java class within the project.
  • Configure the eclipse by importing jar files for Java Client Drivers.
  • In WebDriver, a few of the browsers can be automated directly whereas some of the web browsers require an external Driver Server.
  • Firefox and HTML Units are the only browsers that cannot be automated directly. Thus, they do not require any separate Driver Server. All other commonly known web browsers like Chrome, Safari, Internet Explorer, etc. require Driver Servers.

Next Tutorial #10 => Now that we are done with the entire setup and installation, in the next tutorial we will create our own WebDriver test script using Java.

A remark for the readers: While our next tutorial of the Selenium tutorials series is in processing mode, install the packages mentioned in this tutorial and the required utilities to get started. Most of the WebDriver related packages can be found at the Selenium’s official website.

Let us know if you face any issues in the installation process.

Was this helpful?

Thanks for your feedback!

Recommended Reading

  • Installation and Setup of Appium Studio for Eclipse

    Install within minutes and kick off your Appium testing using real devices directly from eclipse: Appium Studio for Eclipse can be installed in minutes, and Appium testing can begin immediately. It can be considered as a lightweight plugin for your existing Eclipse infrastructure. Easily connect to local devices straight from…

  • Selenium Integration with Robot Framework

    This Tutorial explains Uses, Examples & Functionalities of Robot Class In Java and its Integration with Selenium Framework: Robot Java is a Robot class in the Java AWT package. It is generally used to simulate real-time keyboard and mouse operations which we do manually. The main purpose of the Robot Class in…

  • Appium Studio for Eclipse

    An in-depth look at Appium Studio for Eclipse: This tutorial is a part of our Appium Studio tutorial series. Perform end-to-end Appium/Selenium test automation directly from within the Eclipse and Easily develop, automate, analyze and debug your tests on physical devices and browsers. Here is a Video tutorial: Overview of…

  • Selenium on Chrome

    In-Depth Tutorial On ChromeDriver for Running Selenium Webdriver Tests on Chrome Browser: Handling browser alerts while automating through Selenium will be discussed in this article. Moreover, we will elaborate on the set up of the Selenium script for the Google Chrome browser along with appropriate examples and pseudo-codes. Upon going…


READ MORE FROM THIS SERIES:



57 thoughts on “Selenium WebDriver Setup and Installation with Eclipse”

  1. Hi,

    I think there is correction needed in below statement,”Firefox and HTML Unit are the only browsers that cannot be automated directly”

    It should be “Firefox and HTML Unit are the only browsers that can be automated directly”

    Reply
  2. Error is coming
    Exception in thread “main” java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases
    at com.google.common.base.Preconditions.checkState(Preconditions.java:199)
    at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:109)
    at org.openqa.selenium.firefox.GeckoDriverService.access$000(GeckoDriverService.java:37)
    at org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:95)
    at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:296)
    at org.openqa.selenium.firefox.FirefoxDriver.createCommandExecutor(FirefoxDriver.java:277)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:247)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:242)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:238)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:127)
    at Gmail_Login.main(Gmail_Login.java:13)

    Reply
  3. Exception in thread “main” java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases
    at com.google.common.base.Preconditions.checkState(Preconditions.java:199)
    at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:109)
    at org.openqa.selenium.firefox.GeckoDriverService.access$000(GeckoDriverService.java:37)
    at org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:95)
    at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:296)
    at org.openqa.selenium.firefox.FirefoxDriver.createCommandExecutor(FirefoxDriver.java:277)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:247)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:242)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:238)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:127)
    at MyClass.main(MyClass.java:12)

    Reply
  4. Another great resource 🙂

    I found an error on the page which you might consider fixing “Firefox and HTML Unit are the only browsers that ‘cannot’ be automated directly.” needs to read “Firefox and HTML Unit are the only browsers that ‘can’ be automated directly.”

    Reply
  5. @Hitesh

    Thank you for the appreciation.
    For installation webDriver with C#, you can download the client specific to C# from Selenium’s official download page. You can refer to one of the images in this tutorial for the same.

    Once the download is completed, you can configure the client libraries within your Visual Studio.

    Reply
  6. Python installation guide would be so much useful. Almost everyone uses Selenium WebDriver with Python since it is one of the easiest languages for testers to learn. Java is a disaster :/

    Reply
  7. @durga

    JDK= java development kit, you need this to write programs in java.
    Eclipse = it’s an IDE, it makes it easy for you to write programs.

    So JDK is necessary for you to run java programs, the eclipse will make your work easy when you write programs.

    Reply
  8. hi team,

    i tried to set up selenium webdriver using eclipse luna 4.4.0, java 1.7 , selenium 2.44.0 jar file and running the script using firefox 32.0.3 . on while running the script it’s giving error – Exception in thread “main” org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows:
    xtensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}”,”mtime”:1416281870251,”rdfTime”:1411526204000}}},{“name”:”winreg-app-user”,”addons”:{“ocplugin@webex.com”:{“descriptor”:”C:\\Program Files (x86)”,”mtime”:1442838747186},”{9F17B1A2-7317-49ef-BCB7-7BB47BDE10F8}”:{“descriptor”:”C:\\Program Files (x86)\\HP\\Unified Functional Testing\\Bin\\Mozilla\\Common”,”mtime”:1420621650641,”rdfTime”:1394074736000}}},{“name”:”app-profile”,”addons”:{“fxdriver@googlecode.com”:{“descriptor”:”C:\\Users\\rsingh18\\AppData\\Local\\Temp\\anonymous6893853547649188131webdriver-profile\\extensions\\fxdriver@googlecode.com”,”mtime”:1442838830775,”rdfTime”:1442838830564}}}]
    1442838865606 addons.xpi-utils DEBUG Opening XPI database C:\Users\rsingh18\AppData\Local\Temp\anonymous6893853547649188131webdriver-profile\extensions.json
    1442838865609 addons.xpi DEBUG New add-on fxdriver@googlecode.com installed in app-profile
    *** Blocklist::_loadBlocklistFromFile: blocklist is disabled
    1442838866450 addons.xpi-utils DEBUG Make addon app-profile:fxdriver@googlecode.com visible

    can somebody please help me how to cure this issue ?

    Reply
  9. Nice explanation to setup webdriver for Java language.

    Could you provide any links or URL details where i could setup webdriver for C# Language.

    Your help will be appreciating.
    Thanks,
    Hitesh

    Reply
  10. Appreciable job you people are doing . Keep it up so that learning process become handy for learners.

    Thank you.:)

    Reply
  11. Hello,
    First of all heartiest congratulations and appreciation for doing this commendable job of training students with each and every possible details.
    I have a question, I see that your project structure has a “Referenced Libraries” which I believe contains all the External Jars we pulled from selenium-java-2.41.0. But mine are all listed in the project tree itself. I was wondering how can I create one “Referenced Libraries” like you to contain all of them so that it looks much cleaner.

    Reply
  12. Dear Madam/Sir,

    Really good website, the selenium tutorials are very useful. Gives a good start and overview.

    Thank you.

    Reply
  13. thank u sir for your clear Explanation .
    here ,you show first jdk installation and then eclipse ok fine. but here how these two s/w interconnected.

    i am new to java.i like to learn java.

    Reply
  14. “Firefox and HTML Unit are the only browsers that cannot be automated directly. Thus they do not require any separate Driver Server. All other commonly known web browsers like Chrome, Safari, Internet Explorer etc. requires Driver Servers.”

    – In this paragraph of content is it ” Firefox and HTML Unit are the only browsers that “cannot(can or cannot???)” be automated directly (“https://www.softwaretestinghelp.com/webdriver-eclipse-installation-selenium-tutorial-9/:” )

    kindly correct as it is an important point.

    Reply
  15. i am learning this code
    i want to open a google using this code
    i am using 2.31.0 selenium web driver
    jre 1.7
    and Firefox Setup 51.0b4

    i copied the code from google
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.firefox.FirefoxDriver;

    public class fd1
    {
    public static void main(String[] args)
    {
    WebDriver driver = new FirefoxDriver();
    driver.get(“http://www.google.com”);
    System.out.println(driver.getTitle());
    //driver.close();
    }
    }

    but i run the code
    address.getHostName() = 127.0.0.1
    address.getHostAddress() = 127.0.0.1
    address.isLoopbackAddress() = true
    address.getHostName() = 0:0:0:0:0:0:0:1
    address.getHostAddress() = 0:0:0:0:0:0:0:1
    address.isLoopbackAddress() = true

    but firefox not opening…

    Reply
  16. @ Shruti…within conclusion section point needs to be corrected as- Firefox and HTML Unit are the only browsers that can be automated directly

    Reply
  17. Hi Shruti ma’am,

    I haven’t knowledge about mobile automation testing, It could be possible u help me to automate mobile application with the help of “Appium”. I have good knowledge about selenium.

    Thanx
    Ram Vishwakarma

    Reply
  18. Hi team ,
    i think you should include environmental variable setting for jdk.
    because some peoples are new to some.
    Thanks for the tutorial. 🙂

    Reply
  19. Hello,
    I have followed up on all steps as mentioned in tutorials 1 to 9.
    I made 3 attempts to install everything exactly according to your instructions. However, once executing any new created class, I am getting the following error message:

    Exception in thread “main” java.lang.NoClassDefFoundError: com/google/common/base/Function
    at Gmail_Login.main(Gmail_Login.java:12)
    Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    … 1 more

    Reply
  20. i have configured selenium and TestNG in Eclipse Neon.2 Release (4.6.2) successfully. Unable to Run HTML UNIT driver.

    org.testng.TestNGException:
    Cannot instantiate class org.testng.NewTest
    at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:40)
    at org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:363)
    at org.testng.internal.ClassHelper.createInstance(ClassHelper.java:275)
    at org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:126)
    at org.testng.internal.ClassImpl.getInstances(ClassImpl.java:191)
    at org.testng.TestClass.getInstances(TestClass.java:100)
    at org.testng.TestClass.initTestClassesAndInstances(TestClass.java:86)
    at org.testng.TestClass.init(TestClass.java:78)
    at org.testng.TestClass.(TestClass.java:41)
    at org.testng.TestRunner.initMethods(TestRunner.java:425)
    at org.testng.TestRunner.init(TestRunner.java:252)
    at org.testng.TestRunner.init(TestRunner.java:222)
    at org.testng.TestRunner.(TestRunner.java:171)
    at org.testng.remote.support.RemoteTestNG6_10$1.newTestRunner(RemoteTestNG6_10.java:28)
    at org.testng.remote.support.RemoteTestNG6_10$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG6_10.java:61)
    at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:623)
    at org.testng.SuiteRunner.init(SuiteRunner.java:189)
    at org.testng.SuiteRunner.(SuiteRunner.java:136)
    at org.testng.TestNG.createSuiteRunner(TestNG.java:1375)
    at org.testng.TestNG.createSuiteRunners(TestNG.java:1355)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1209)
    at org.testng.TestNG.runSuites(TestNG.java:1133)
    at org.testng.TestNG.run(TestNG.java:1104)
    at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)
    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.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:29)
    … 25 more

    Reply
  21. Hi
    i have downloaded java and eclipse luna from web sites and installed successfully and written sample web driver program.when running the java application the below exception showing .please help me

    Usage:
    D:\Selenium\geckodriver.exe [OPTIONS]
    D:\Selenium\geckodriver.exe: Unknown option –port=2236
    Oct 30, 2016 8:44:21 AM org.openqa.selenium.remote.ProtocolHandshake createSession
    INFO: Attempting bi-dialect session, assuming Postel’s Law holds true on the remote end
    Exception in thread “main” org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2236 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
    Build info: version: ‘unknown’, revision: ‘1969d75’, time: ‘2016-10-18 09:43:45 -0700’
    System info: host: ‘VenkataRao-PC’, ip: ‘192.168.0.11’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.8.0_112’
    Driver info: driver.version: FirefoxDriver
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:91)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
    at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:128)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:259)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:247)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:242)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:238)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:127)
    at com.selinum.Test.BasicTest.main(BasicTest.java:28)
    Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2236 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:158)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:142)
    at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:88)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:108)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:64)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
    … 9 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)
    … 24 more

    Reply
  22. Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: “d”:”C:\\Program Files\\Mozilla Firefox\\browser

    when i try to run selenium webdriver program , it opens up and refusing connection as above stated

    Reply
  23. Hello Mr/s Authors,

    I’ve read below sentence in tutorial#9 of Webdriver-eclipse-installation-selenium-tutorial series:

    Firefox and HTML Unit are the only browsers that cannot be automated directly.

    Here… “Cannot be” should be “can be”. Request to review and correct.

    Reply
  24. Hi, I just want to know how to link Selenium documentation in eclipse. I tried using CTRL+ Click option and tried to link but Documentation is not available

    Reply
  25. Thank you so much for above information. As every thing pretty clear and accurate on above provided data, I would like to see some update on data posted above:

    Under Conclusion section, One point require a correction. It should notify “Firefox and HTML Unit are the only browsers that can be automated directly” where as “Firefox and HTML Unit are the only browsers that cannot be automated directly.

    As many users/reader like me are relying on above tutorial, would like to give my observation. Not Intend to point out data correction.

    Thanks Once again for Such a wonderful presentation at each tutorial Guys.

    Reply
  26. hi,
    you worte…

    Step 2: Once downloaded, copy the folder and place it in the desired location on your file system.

    but you did not mention where to copy it. i mean give an example.

    Reply
  27. Thank you for all the good tutorials that you provide.

    I have this error and will appreciate your help to resolve this: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
    “homepageURL”:null,”contributors”:[“Mozilla Contributors”]},”visible”:true,”active”:true,”userDisabled”:false,”appDisabled”:false,”descriptor”:”C:\\Program Files\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi”,”installDate”:1460086235000,”updateDate”:1460086235000,”applyBackgroundUpdates”:1,”skinnable”:true,”size”:22012,”sourceURI”:null,”releaseNotesURI”:null,”softDisabled”:false,”foreignInstall”:false,”hasBinaryComponents”:false,”strictCompatibility”:true,”locales”:[],”targetApplications”:[{“id”:”{ec8030f7-c20a-464f-9b0e-13a3a9e97384}”,”minVersion”:”45.0.2″,”maxVersion”:”45.0.2″}],”targetPlatforms”:[],”seen”:true}.

    Thanks.
    Preethi

    Reply
  28. Thank You for the article. its knowloedgable…
    But im facing issues: Selenium 4.4.0. Java 8, Firefix 44. Error is saying : “Exception in thread “main” java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases
    ” i installed gecko v0.18 but still error appearing. not able to crack the problem. please help. thanks in advance

    Reply
  29. Hello,
    I am bit confused regarding eclipse download, I checked the download link provided in this tutorial which directed to the eclipse.org, but, there are several (mirror) links visible after I clicked for 64-bit download.

    Kindly help for eclipse download.

    Thanks.

    Reply
  30. “Firefox and HTML Unit are the only browsers that cannot be automated directly.” I think above written in this blog, instead of cannot it should be CAN BE.

    Reply
  31. my current system is windows 10.
    after adding all the additional jars for selenium webdriver version 3.0.0 beta-2, and wrote the code (i.e. WebDriver driver = new FirefoxDriver();)
    and when i executed it it shows some error message ,by underlining the comment ‘driver’
    in error message it displayed “remove ‘driver’ and all assignments”
    here I have attached the screenshots regarding that problem ,go through the link for better assistance :
    https://drive.google.com/folderview?id=0B-ASJfWgGOnzUTU3NmZqXzZOdXc&usp=sharing
    please give me a solution .

    Reply
  32. I think the best & easy way to start learning selenium is to use maven where you can skip all these installations and declare in dependencies. Nowadays most of the IDE’s comes with maven pre-installed.

    Reply
  33. I think from Selenium version 3 on wards we need to configure every browser explicitly to automate any application ,including Firefox also.

    Reply
  34. Hi,
    while downloading eclipse, am able to download the same successfully, but after unzipping the i couldnt find .exe file for eclipse. Please help me on the same

    Thanks & Regards
    Lawrence Francis Xavier

    Reply
  35. hi,
    I’m getting below output in console.Please tell me whats is going wrong with the eclipse.

    at .DelayedCommand.prototype.execute/<(file:///C:/Users/KUMAAR/AppData/Local/Temp/anonymous8589265385386591257webdriver-profile/extensions/fxdriver@googlecode.com/components/command-processor.js:12608)

    please help me!

    Reply
  36. Hi Team,

    I think in conclusion section last point has a mistake..

    “Firefox and HTML Unit are the only browsers that “cannot” be automated directly.” Thus they do not require any separate Driver Server. All other commonly known web browsers like Chrome, Safari, Internet Explorer etc. requires Driver Servers.

    “Firefox and HTML Unit are the only browsers that can be automated directly.”

    Please correct this in the page. as both of them not required external driver so we can directly automate both of them.

    Regards
    Ankur

    Reply
  37. i am unable to configure selenium webdriver in eclipse with new updated eclipse and selenium jar file.plz give me solution and help me

    Reply
  38. hi

    when i try setuped webdrivers in my eclipse. i am trying to execute basic code i am getting below error can you please help me what are the JAR’s are missing.

    (Exception in thread “main” java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases
    at com.google.common.base.Preconditions.checkState(Preconditions.java:847)
    at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:124)
    at org.openqa.selenium.firefox.GeckoDriverService.access$100(GeckoDriverService.java:41)
    at org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:141)
    at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:339)
    at org.openqa.selenium.firefox.FirefoxDriver.toExecutor(FirefoxDriver.java:158)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:120)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:98)
    at org.dell.com.Sample1.main(Sample1.java:11))

    Reply
  39. Firefox and HTML Unit are the only browsers that cannot be automated directly.

    I do not think above statement is correct, written under CRUX section

    Reply
  40. Hi,

    The last sentence (Cruxes) “Firefox and HTML Unit are the only browsers that cannot be automated directly.” seems to be incorrect.

    Thanks for such an effort with these tutorials these are really great and written even for a laymen person.

    Liked it 🙂

    Reply

Leave a Comment