- Fixed #2091 - an issue with
waitForElementNotPresent
causing the test to fail immediately if the element is found, without retrying; - Added support for Safari to use W3C Webdriver protocol by default;
- Added support for using protocol element commands directly on the page object sections:
const homepage = client.page.home();
const navigation = homepage.section.navigation;
navigation.api
.elementIdElements('@versionDropdown', 'css selector', 'option', function(result) {
console.log('result', result);
});
Checkout the nightwatch-website-tests example tests also for more usage details.