You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like there to be an option to verify that an element has never been on the page.
For example if I run:
cy.get('#buttonId').should('not.exists')
to verify that my page does not have the button with id = buttonId, I would like cypress to keep trying 'get' and at the end of the timeout, in the case of the element not being present, the test would be passed
Why is this needed?
I would like this because it would be interesting to have the ability to verify the nonexistence of an element and not just its elimination from the dom
Other
No response
The text was updated successfully, but these errors were encountered:
@jennifer-shehane I 've read , but unfortunately the existence of an element is verifiable only in the case of synchronous and not asynchronous state changes. I am looking for something to be able to test non-existence in asynchronous pages
What would you like?
I would like there to be an option to verify that an element has never been on the page.
For example if I run:
to verify that my page does not have the button with id = buttonId, I would like cypress to keep trying 'get' and at the end of the timeout, in the case of the element not being present, the test would be passed
Why is this needed?
I would like this because it would be interesting to have the ability to verify the nonexistence of an element and not just its elimination from the dom
Other
No response
The text was updated successfully, but these errors were encountered: