title: how to click a button for an protractor e2e test?
body: <p>I am trying to write an e2e test with protractor and click this button:</p>
  
  <pre><code>&lt;button class="btn btn-warning" ng-click="clickThis()"&gt;Here&lt;/button&gt;
  </code></pre>
  
  <p>My test looks like this:</p>
  
  <pre><code> element(by.buttonText('Here')).click();
  </code></pre>
  
  <p>When I run protractor I get an error:</p>
  
  <pre><code> Failed: Timed out waiting for Protractor to synchronize with the page after 11 seconds.
  </code></pre>
  
  <p>How can I solve this?</p>