title: Capybara+Rspec how to match a part of tag attribute
body: <p>I have a page with several links like that <code>&lt;a href='/bla/bla/bla/?page=xxx&gt;text&lt;/a&gt;</code>
  I want to match certains <code>xxx</code> values links using Capybara and RSpec, i don't care about <code>bla/bla/bla</code> part of <code>href</code> attribute.</p>
  
  <pre><code>page.should have_selector("div.class ul li a", :href =&gt; "page=2") 
  </code></pre>
  
  <p>doesn't work,
  also </p>
  
  <pre><code>page.should have_xpath("//a[@href='page=2']")
  </code></pre>
  
  <p>is not an option because i don't know the full <code>href</code> attribute value.</p>
  
  <p>PS: also didn't find any complete Capybara API documentation just to get all available methods and parameters' description. I there such thing?</p>