tim-yao / cucumber-nightwatch

A small library to enable us to use latest nightwatch.js(v3) in cucumber.js(v9)
MIT License
1 stars 1 forks source link

`click` command won't fail #7

Closed tim-yao closed 1 year ago

tim-yao commented 1 year ago

await browser.click('#not-existing-element') won't fail the step.

This is also a Nightwatch programmatic API issue. Maybe https://github.com/nightwatchjs/nightwatch/pull/3499 will fix this.

tim-yao commented 1 year ago

With the v3, the recommended way is browser.element('#not-existing-element').click(). So no this issue anymore.