title: Continuing Promise Chain on browser.wait() Timeout
body: <p>I have the following code:</p>
  
  <pre><code>.then(function() {
      return buttonClick();
  })
  // BEGIN
  .then(function() {
      return browser.wait(EC.elementToBeClickable(anotherButton), timeOut)
          .then(function() {
              anotherButton.click();
          })
  })
  .then(function() {
      return browser.wait(EC.elementToBeClickable(yetAnotherButton), timeOut)
          .then(function() {
              yetAnotherButton.click();
          })
  })
  // END
  .then(function() {
      browser.wait(do some things);
  })
  </code></pre>
  
  <p>I need to make the code in between <code>BEGIN</code> and <code>END</code> execute only when <code>return browser.wait(EC.elementToBeClickable(anotherButton), timeOut)</code> succeeds. If the above does not succeed, I would just like to resume the chain at the <code>browser.wait(do some things);</code> </p>
  
  <p>I've been trying several different ways of achieving this and have found some luck in doing something similar to <a href="https://stackoverflow.com/questions/36596925/promise-ignore-catch-and-return-to-chain">this</a> but have yet to actually get the results I'm looking for. </p>
  
  <p>Any suggestions on how I can accomplish this?</p>
  
  <p>Thanks</p>