title: Cypress: Alternative for command 'wait'
body: <p>I am looking for an alternative to the wait command.</p>
  <p>As we all know, a page/component/etc. does not take the same time to load or simply be available every time it is called.
  For this reason, I cannot rely on the 'wait' command with constant time specification.</p>
  <p>So I am looking for an alternative.</p>
  <p>Some people on the internet write that the command 'then' helps to wait until the condition is fulfilled.
  Unfortunately, the following alternative does not work in my case:</p>
  <pre><code>cy.get(#element).should('exist').then(() =&gt;{ 
     cy.get(#element).click(); 
  });
  </code></pre>
  <p>I am looking forward to your messages and alternatives to 'wait'.
  Many greetings Janni</p>