Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

Should I upgrade from Selenium 2.0 to Selenium 3.0? What are things I should remember before I upgrade?

Open 1 Answers 42 Views
0 1
We have been using Selenium 2 in our project since its release. Now, we are planning to upgrade to Selenium 3. What are things I should take care of before I upgrade? Will that be an easy process? Do I need to change any code base?

1 Answer


In my opinion, you can upgrade your library to Selenium 3.0. Selenium 3.0 is more focused about Mobile Test automation and has bug fixes from Selenium 2.0. There is no change in architecture and also code. So, you can easily upgrade without changing any line in your existing page.

The only thing you will need to change is the usage of geckodriver. If you have not started to use geckodriver for Firefox, you should first upgrade your latest version of Firefox, download the geckodriver and set it in before initiating the Firefox or Marionette Driver.

System.setProperty("webdriver.gecko.driver", "\\drivers\\geckodriver.exe");

To know the difference between Selenium 2.0 and 3.0, you can go here:

Another thing that we noticed is WebDriverWait class does not work anymore in Selenium 3.0. So, if you have many places where you are using WebDriverWait, you should first consider changing it to FluentWait.

You can also fix it by using Guava library in maven,


Hope that helps!

answered by (830 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.