Changelog History
Page 2
-
v1.3.4 Changes
January 28, 2020- ๐ Fixed #2294: ES6 async/awaits does not work with browser.elements()
-
v1.3.3 Changes
January 26, 2020 -
v1.3.2
December 05, 2019 -
v1.3.1 Changes
November 23, 2019- ๐ Fixed #2255 - callback not being called when errors occurred during an element command;
- โ Added improvements for the auto-generated
nightwatch.conf.js
file
-
v1.3.0 Changes
November 22, 2019๐ New features
BDD describe Interface
โ Added BDD describe interface for writing tests. No further configuration is necessary and both exports and bdd interfaces can be mixed together (though not in the same file).
More detailsassert.not Assertions
โก๏ธ You can use .not assertions for every existing and custom assertion. Custom assertions will require to be updated to the new interface in order to make use of
.not
. Refer to the Custom assertions docs for details.module.exports = { demoTest(browser) { browser .assert.not.elementPresent('.not\_present') // previously .assert.elementNotPresent() .assert.not.visible('.non\_visible'); // previously .assert.hidden() .assert.not.urlContains('http://'); // ... } }
๐ New APIs
Commands:
Assertions:
Expect:
๐ Improvements
๐ New CLI options:
- ๐ป
--headless
- Launch the browser (Chrome or Firefox) in headless mode. - โ
--timeout
- Set the global timeout for assertion retries before an assertion fails. The various timeout values are defined in the Globals section.
โ More details
โ
nightwatch
Test Runner- ๐ง Auto-generated configuration: if no existing config file is found in the current folder, Nightwatch will generate a
nightwatch.conf.js
config file, based on the operation system and existing driver packages. More details - โ Added support for http keepAlive which should be enabled when using remote testing services. See Configuration for details.
- โ Added several improvements for running tests against cloud testing provider Browserstack; see also an example configuration for using Browserstack.
๐ Fixes
- ๐ป
-
v1.2.4 Changes
September 20, 2019- โ Added the module path of the testsuite in the test results object - #2207
-
v1.2.3 Changes
September 19, 2019๐ Fixed #2190 - test error/failure stack traces weren't showing correctly
-
v1.2.2 Changes
September 01, 2019โ Added - new configuration settings to for fine tuning the Webdriver server process:
๐
status_poll_interval
- Interval (in ms) to use between status ping checks when checking if the Webdriver server is up and runningmax_status_poll_tries
- Maximum number of ping status check attempts when checking if the Webdriver server is up and running before returning a timeout error.process_create_timeout
- The entire time (in ms) to wait for the Node.js process to be created and running (default is 2 min), including spawning the child process and checking the status
๐ง More details
-
v1.2.1 Changes
August 12, 2019๐ New commands
โ Added several new commands in-line with the W3C Webdriver API:
๐ Improvements
waitForElementVisible
doesn't throw an error anymore if the element cannot be found - #2148- โ Added w W3C Webdriver API compatibility support for
.timeouts()
command; - โ Added
suppressNotFoundErrors
option for element selector properties to enable suppressingNoSuchElement
errors when element is not found for commands such as.click()
or.getText()
etc.
๐ Fixes
-
v1.2.0
August 12, 2019