title: Reliable click function in capybara with selenium
body: <p>Sometimes the .click capybara function doesn't fire and it doesn't fail either because it assumes that it fired. So I looked around and found that .trigger("click") is more reliable with some drawbacks too.</p>
  
  <p><a href="https://github.com/teamcapybara/capybara/blob/3fdeb0e00a46fdd50d95012b37dbf23da8b70072/lib/capybara/node/element.rb" rel="nofollow noreferrer">But I read the github for the trigger() function and it says it doesn't work in selenium.</a></p>
  
  <p>Is there an alternative function for a reliable click with capybara/ruby in selenium?</p>
  
  <p>ex:</p>
  
  <pre><code>find(el).click
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>find(el).trigger("click")
  </code></pre>