title: How to repeat a JavaScript function 5 times
body: <p>I'm testing an app with Protractor; I want to simulate a click on a button 5 times but I don't want to write the same code x5. how can I do it?</p>
  
  <pre><code>element(by.css('button.click')).click();
  </code></pre>