What's new in Selenium 3

Now that the Selenium 3 is officially out, here are few things that you need to know about the latest release.
  • All the major browser (Firefox, Edge, Chrome and Safari) vendors ship their own drivers. Note that even if you are using Selenium 2, for firefox version 48+ you need to get geckodriver, which is an executable similar to chromedriver or edgedriver. Geckodriver is not an addition to Selenium 3, but is an addition to firefox. Also read - How to interact with Gecko-based browsers.
  • Browser automation is based on open source WebDriver - W3C specification.
  • For those using WebDriver API using Selenium 2, there is no change in Selenium 3.0. A simple download of the new jar file and updating the maven dependency to Selenium 3.0.0 will do. Also read - WebDriver implementation in a Maven Project.
  • The underlying technology, original Selenium Core implementation is now replaced with the one backed by WebDriver. Those using Selenium RC, may have to rewrite some part of the code to make their code work using Selenium 3. Selenium Core is now a legacy package.
  • Original Selenium RC APIs have been removed. These APIs now come under legacy. If you still want to use the Selenium RC API then you will need a dependency to org.seleniumhq.selenium:selenium-leg-rc:3.0.0
  • Java 8 is needed for running tests using Selenium 3.0.
Download Selenium 3.0 here

No comments:

Post a Comment