Closed tim-yao closed 1 year ago
await browser.click('#not-existing-element') won't fail the step.
await browser.click('#not-existing-element')
This is also a Nightwatch programmatic API issue. Maybe https://github.com/nightwatchjs/nightwatch/pull/3499 will fix this.
With the v3, the recommended way is browser.element('#not-existing-element').click(). So no this issue anymore.
browser.element('#not-existing-element').click()
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.