title: Protractor: I need to wait until the component shows in the screen
body: <p>I've got a problem, I need to wait until the component shows in the screen, sometimes the components delays too long to show up. I need to wait until some field, or variable becomes true. Someone knows how to do this?</p>
  
  <pre><code>element(by.id('nextStage-button')).isPresent().then(function (visible) {
      let i = 0;
      while (visible !== true){
          browser.sleep(2000);
          console.log("test "+ i++);
          if(visible === true){
              break;
          }
      }
  </code></pre>