title: Is there a built-in Capybara method to click on an element multiple times?
body: <p>I have a form with a '+' icon to increase the number value inside of another tag. </p>
  
  <p>So with Capybara I can just click on it like this:</p>
  
  <pre><code>all('.qty-input')[0].find('.more').click
  </code></pre>
  
  <p>But I want to be able to set the amount of clicks through a variable. I tried doing this but it raises an error because click does not accept any parameters.</p>
  
  <pre><code>all('.qty-input')[0].find('.more').click(number_of_clicks)
  </code></pre>
  
  <p>I think I can create a simple method to this, like this, but is it necessary? Doesn't Capybara have anything built-in for several clicks?</p>
  
  <pre><code>def multiple_clicks element, number_of_clicks
     number_of_clicks.times{|n| element.click}
  end
  </code></pre>
  
  <p>Edit: </p>
  
  <p>The original code I put there was </p>
  
  <pre><code>def multiple_clicks element, number_of_clicks
     number_of_clicks.map{|n| element.click}
  end
  </code></pre>
  
  <p>Which doesn't make sense, so I edited it using <code>times</code> instead of <code>map</code> method.</p>