Selenium 3 is Coming!
Selenium 3 is coming! I’m here to tell you about what’s changed, and what impact this will have on your testing.
- WebDriver users will just find bug fixes and a drop-in replacement for 2.x.
- Selenium Grid users will also find bug fixes and a simple update.
- The WebDriver APIs are now the only APIs actively supported by the Selenium project.
- The Selenium RC APIs have been moved to a “legacy” package.
- The original code powering Selenium RC has been replaced with something backed by WebDriver, which is also contained in the "legacy" package.
- By a quirk of timing, Mozilla have made changes to Firefox that mean that from Firefox 48 you must use their geckodriver to use that browser, regardless of whether you're using Selenium 2 or 3.
In more depth:
When we released Selenium 2.0 in 2011, we introduced the new WebDriver APIs, and encouraged everyone to start moving to them. If you're using the WebDriver APIs, then Selenium 3.0 is a simple drop-in upgrade. We've not changed any of the WebDriver APIs, and the code is essentially the same as the last 2.x release. If you're using Selenium Grid, the same applies: in most cases, you can just drop in the new JAR (or update your maven dependency to 3.0.0), and you're done.
At the same time as the Selenium project is shipping Selenium 3.0, Mozilla is changing the internals of Firefox in a way that makes it more stable and secure, but which also makes the community-provided Firefox Driver no longer work. As such, if you use Firefox for your testing, you'll need to use the geckodriver, which is an executable similar to the chromedriver and MS's edgedriver. You'll need to start using geckodriver even if you're using Selenium 2 — the change is in the browser, not Selenium.
With Selenium 3.0, we are deleting the original Selenium Core implementation. If you use the old RC interfaces, we provide an alternative implementation that's backed by WebDriver. This is the same "webdriver-backed selenium" that has been available as part of Selenium 2 since its release. Because the underlying technology has changed from Selenium Core to WebDriver, you may find some places where your existing tests using RC run into issues. Our experience with migrating suites is that it's normally a systemic issue that can be fixed with a minimal engineering effort (that is, the problem is normally isolated to a few places, and these can be rewritten to avoid problems)
We're also removing the original Selenium RC APIs from the main downloads. If you're a Java user, and need to use them to support existing tests, then you'll need a dependency to "org.seleniumhq.selenium:selenium-leg-rc:3.0.0" (or later!). It's strongly recommended that you do not do this unless you absolutely need to.
If you're someone who runs tests exported from IDE in the table format, there is now a new test runner that the project has made available for you to use that can be downloaded from the project's website. It takes the same arguments as the old runner, and we've done our best to ensure the output of tests remains the same too.
This release marks the culmination of a lot of hard work by the Selenium committers and community. I'd like to thank everyone who has been part of this process, and the Selenium users around the world who have done so much to make the project as successful as it is. We hope you enjoy Selenium 3.0!
Simon Stewart is the creator of WebDriver, the open source web application testing tool, as well as a core Selenium developer. WebDriver remains a hot topic as it is currently going through a W3C (World Wide Web Consortium) specification process, which Simon is a co-editor of.
Come join Simon at this year's flagship Selenium Conference in London, November 14-16! Learn more.
- Accessibility Testing
- Appium Resources
- Best Practices
- Continuous Delivery
- Continuous Integration
- Continuous Testing
- Cross Browser Testing
- Guest Blog Posts
- Load Testing
- Mobile Development & Testing
- News & Product Updates
- Open Sauce
- Open Source
- Performance Testing
- Product Updates
- Quality Assurance
- Quality Engineering
- Sauce Product Info
- Security Testing
- Selenium Resources
- Software Development & Testing
- The Story of Sauce