nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.75k stars 1.3k forks source link

Use `NoSuchElementError` when element not found in new Element API. #4193

Closed garg3133 closed 2 months ago

garg3133 commented 2 months ago

Fixes: #4078

Right now, whenever the new Element API is unable to find an element, it throws a very generic Error. Instead, it should throw a NoSuchElementError with proper information and help text with the error message.

image
github-actions[bot] commented 2 months ago

Status