title: Two ways to find ID in Capybara - why does one fail and the other doesn't?
body: <p>I want to simply "click" on a link using Capybara and Cucumber. I have an element that looks like this:</p>
  
  <pre><code>&lt;a class="to-right" id="create-account-link" href="https://somewebsite.com/"&gt;Create account&lt;/a&gt;      //url is different when I test it
  </code></pre>
  
  <p>I tried the following two methods in my step definition:</p>
  
  <pre><code>page.find('[@id=create-account-link]').click       //works
  
  AND
  
  page.find('#create-account-link').click            //doesn't work
  </code></pre>
  
  <p>I would like to find out why the latter doesn't work. Any idea?</p>