nightwatch v1.3.0 Release Notes

Release Date: 2019-11-22 // over 4 years ago
  • ๐Ÿ†• 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 details

    assert.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

    • ๐Ÿ›  Fixed #2219 - an issue with locating elements from page object sections using non @-based element identifiers
    • ๐Ÿ›  Fixed getElementSize and getLocation commands for w3c webdriver clients - #fd10c9b