title: Selecting element with multiple classes in Capybara
body: <p>I'm writing automation code in Capybara with Selenium.
  I have the following element in my HTML, and I wanna click this element in Capybara.</p>
  
  <pre><code>&lt;a href="#" class="classA classB"&gt;click me&lt;/a&gt;
  </code></pre>
  
  <p>At the moment, the way worked is something like following.</p>
  
  <pre><code>find('.classA', :text=&gt;"click me").click
  </code></pre>
  
  <p>But I wanna select the element from the names of the two classes like this</p>
  
  <pre><code>find('a.classA.classB').click
  click_on('a.classA.classB')
  </code></pre>
  
  <p>I know we can get javascript code fired, but this is not smart.</p>
  
  <pre><code>page.execute_script('$("a.classA.classB").click()')
  </code></pre>