Do you have questions ? We got the answers!

Ask a question:

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

Open 1 Answers 32 Views
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 Jul 27 by mayur (15 points)

Top Contributors

  • 4970 pointsstbadmin

    34 questions 454 answers218 comments

  • 430 pointsSunilBhaskar

    40 questions 14 answers26 comments

  • 425 pointsMehedi

    36 questions 3 answers14 comments

  • 354 pointsSoft Tester

    43 questions 0 answers4 comments

  • 342 pointssumitkumarwatts

    0 questions 12 answers0 comments

  • 327 pointsKeeshaGolden

    0 questions 17 answers2 comments

  • 322 pointsVipul Sharma

    44 questions 0 answers24 comments

  • 310 pointsvysh.sharma

    25 questions 0 answers0 comments

  • 267 pointsOnkar_Nimje

    33 questions 15 answers15 comments

  • 258 pointsVanitha

    26 questions 0 answers6 comments