This version brings several performance enhancements for interacting with elements and some new features.
Improved element interaction stability
We have improved the mechanism used to interact with elements when using commands like click
or setValue
by adding automatic retries in case the element is not found or if the element reference has become stale. This will improve the overall stability of tests.
Support for ES6 Async functions
You can now use await
operator for retrieving the result of commands such as isVisible
or getValue
.
Please see Using ES6 Async/Await for more details.
New expect Apis
Page Objects Improvements
- Added more properties for object-based element selectors - see guide/#element-properties
- Added support for pseudo-selectors - e.g.
'@searchBar:first-child'
- Added support for using
.elements
with page objects elements - http://nightwatchjs.org/api/elements.html