What’s new in selenium 3.0

Selenium3.0_ReleaseSelenium released 2 beta versions of selenium 3.0 (beta 1 & 2 till 3rd Aug, 2016) with few of the below changes:

Reference link : Selenium Changelog

Beta 1 updates

  • Minimum java version is now 8+
  • Support for Firefox is via Mozilla’s geckodriver (will discuss below)
  • Support for Safari is provided on macOS (Sierra or later) via Apple’s own safaridriver.
  • Support for Edge is provided by MS

Download the driver from Microsoft edge driver

  • Official support for IE requires version 9 or above.

Beta 2 updates (Only for Java)

  • System property webdriver.firefox.marionette now forces the server in marionette or legacy firefox driver mode, ignoring any related Desired Capability
  • Update GeckoDriver –port argument in all bindings
  • Grid fix NPE’s on registration when -browser not specified

Download selenium 3.0 jar files from seleniumHQ download

Firefox driver (gechodriver) for selenium 3.0

From selenium 3.0 on wards, we need to explicitly provide firefox driver (geckodriver) as firefox no longer provides default inbuilt driver.




If you will not provide the firefox driver explicitly & run as usual, then you will get exception –

Exception in thread “main” org.openqa.selenium.WebDriverException: Missing ‘marionetteProtocol’ field…

or

Exception in thread “main” “java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property;

set the system property as you do for chrome browser :

Download gechodriver releases  (chose for respective OS)
You can now run tests on all old and new versions of Firefox (like 46, 47 etc…)

 

Content posted is based on learning or working experience, please leave comments if anything needs to be added or updated, discuss your queries on our facebook:qavalidation.com, Thanks!

3 Responses

  1. Patila says:

    Thanks worked for me using beta 2..:)

  2. Thanks so much for the detailed information.

  3. S.Srisony says:

    thank u its really working

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: