How to use Firefox in Selenium using geckodriver in Selenium 3

Good news for Selenium users, Recently Selenium has launched Selenium 3 with so many new changes.In this post I will show you how to use Firefox in Selenium using geckodriver which will run the test.

You can check the new changes in Selenium 3 beta version.

If you are using Selenium 3 then to work with Firefox browser you need to use separate a driver which will interact with Firefox browser. If you have noticed then we have done the same thing for Chrome and IE browser as well.

One important thing in this post is even if you are using Firefox beta version then it will work. If you are using firefox 47 and so on then it will work.

We have used below system property for Chrome and IE for Chrome browser for IE browser

Now we have to use webdriver.gecko.driver for Firefox as well 🙂


Note- if you are still using Selenium 2 like 2.53 and 2.51 or any version then you don’t have to set this path.

Let’s run a basic program with Selenium 3 beta version

Program 1 without any driver

Output console

The path to the driver executable must be set by the webdriver.gecko.driver system property;

Firefox in Selenium using geckodriver Firefox in Selenium using geckodriver

As you can see to work with Firefox we have to set the property now.  You can download the driver from Github and then you can extract and you will get .exe file.

Download URL –

Firefox in Selenium using geckodriver

Firefox in Selenium using geckodriver

Youtube- Firefox in Selenium using geckodriver 

Complete program for Firefox in Selenium using geckodriver

Now you can run the program and you will get expected output.

Hope you have enjoyed the article if yes then feel free to share with your friends.



  1. Waheed Ahmed
  2. Sudhir
  3. Sue Guttilla
  4. leena
  5. Aparnalokesh
  6. Kotresh
  7. Archana
  8. Rahul
  9. Ranjit
  10. Kamal
  11. Radhika
  12. Ramesh
  13. Loren Lai
  14. Rashmi
  15. Loren Lai
  16. Yauwana
  17. Raja
  18. Chethana
  19. Fareed
  20. Ravi J
  21. Atul Gupta
  22. Tom Brady
  23. varun
  24. asha
  25. Ahmed
      • Suresh
  26. Mark Zawadzki
  27. Ankit
      • Sridhar
  28. Heena
      • Guyman
    • Deepika
  29. Mark
  30. Aamer Hussain
  31. Kapil
      • Javier
  32. Madhuri Samudrala
  33. Bharadwaj
      • Bharadwaj
  34. sushanth
  35. Radhika
  36. Samita
  37. master
  38. Riyas
  39. Anish
  40. nandini
  41. Faiza
  42. Nusrat
  43. Gaurav
  44. Abdul Nadeem Mohammad
  45. Kumar
  46. LancerAce
  47. Srinivas
  48. Ranjit
  49. new
  50. New
  51. kush
  52. Vamshi Guddeti
  53. Suuresh
  54. MIrza
  55. Amit Kumar Singh
  56. Ankitha
  57. Sarika Bagga

Leave a Reply