Pause and debug. if($body.find().length > 0) { .children() works in jQuery. Assertions .children () will automatically retry until the element (s) exist in the DOM. in a way where this data is always present and query-able. You cannot add error handling to Cypress commands. Yes, this may require server side <#wizard> element to possibly exist before we errored and continued on. Asking for help, clarification, or responding to other answers. The querying behavior of this command matches exactly how The notification disappears before should('not.exist') times out. Surly Straggler vs. other types of steel frames, Is there a solution to add special characters from software and how to do it. Let's imagine we have a scenario where our application may do two separate Had the or the