🚀 Nightwatch 2.0.0 has been released!
The new major version is here at last.
The first public NPM release of Nightwatch 2.0 is here and can be installed directly with:
npm i nightwatch --save-dev
Over the past few weeks we have worked tirelessly to finalise the apis, add a few more examples, and try and smooth over any rough edges.
What's New in v2
Nightwatch 2.0 contains a wide range of new features and improvements for writing and running tests as well as full cross-browser testing support for W3C WebDriver compliant browsers.
The underlying architecture for communicating with the browsers has been completely reworked in order to use the official Selenium-Webdriver Node.js library. This means that Nightwatch is now much better equipped for cross-browser integration and DOM element handling, and overall is able to deliver more stable and faster tests.
Since Nightwatch 2 builds on top of Selenium now, it is never behind any new WebDriver API.
Here’s some of the main new features and improvements:
New plugin API - create your own Nightwatch plugins and publish them in NPM
New user actions API
Integrated test runner for CucumberJS
Improved Mocha test runner
Support for Chrome Devtools Protocol
New programmatic API
New element() API for working with DOM elements
Several new API commands and assertions
For a detailed overview please visit the What’s New in v2 page on our website.
In case you may have missed it, last month we’ve announced that Nightwatch has joined BrowserStack which means that we are now able to continue its development at a much faster pace and we have big plans for the road ahead.
Over the coming weeks we will continue improving the documentation and we’ll be adding some new Guide pages and boilerplate projects so keep an eye out on our Github page:
We also have a new chat server on Discord. Come and say hi:
Stay safe everybody!