-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Migrating to Nightwatch 2.0
Below is a list of potentially breaking changes in version 2.0 and deprecated functionality which was removed. All attempts have been made to ensure a complete and accurate list, but there might be things which we overlooked.
We have tried to minimize the amount of breaking changes as much as possible but some of them were difficult to avoid.
When using ES6 async/await test cases, the result value of Nightwatch commands does not contain the status
and value
properties anymore, but simply the value
(this can be reversed by setting backwards_compatibility_mode
to true
in your nightwatch config).
Changes in the result object:
- contains an
error
property which is an Error object instance - no longer contains
httpStatusCode
property - no longer contains
value
property
- removed
proxy-agent
as dependency since it was frequently causing dependency issues; the proxy-agent package can be installed separately from NPM and used in the same way.
-
removed .startWebDriver() / .stopWebDriver() from the CLI Runner since the Webdriver service is now managed by the
selenium-webdriver
. See https://github.com/nightwatchjs/nightwatch/issues/2918 -
remove setting
webdriver.use_legacy_jsonwire
-
removed event
nightwatch:finished
from main client instance
TBA