-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoSuchElementError
should be suppressed for assert[.not].present()
assertion in new Elem API.
#4304
Comments
Hey @garg3133 I am a beginner at Open Source. So can I contribute to this issue, if yes. can you please specify what parts of the projects do I need to look at for fixing this issue. Regards, |
Hey, the You might need to use the VSCode JS Debugger to understand how this part of the code works before solving this issue. |
Okay, will be back soon with the solution. |
Hey @garg3133, I noticed there hasn’t been any activity on the assigned issue in the last two weeks. If it’s no longer being worked on, I’d be happy to take it up and work on it. |
Description
When we do
browser.element.find(selector).assert.present()
, if the element is not found, we get theNoSuchElementError
error, but in case ofassert.present
, this error should be suppressed since the failure of the assertion would anyway signify that the element is not present.The same also goes for the
.assert.not.present()
assertion. In this case, if the element is not present, the assertion should normally pass without theNoSuchElementError
.(The test should pass with 0 errors unlike in the above screenshot.)
The text was updated successfully, but these errors were encountered: