title: How to check if url/links exist in page in Capybara?
body: <p>I've been searching for so long already but haven't found any solution.</p>
  
  <p>I would like to check if a particular URL exists in the page. Rspec Capybara</p>
  
  <p>for example: I'd like to check if the url <a href="http://project/guides/basics/" rel="noreferrer">http://project/guides/basics/</a> is in the page.</p>
  
  <p>capybara has <code>has_link</code> function but only accepts an <code>id</code> or <code>text</code> as a parameter so for this example,</p>
  
  <pre><code>&lt;a href='http://project/guides/basics/'&gt;
      &lt;div class='image-button-container'&gt;
          &lt;img src='/images/basic_img.png'/&gt;
      &lt;/div&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>how should I do the <code>expect()</code> in Rspec using Capybara? Thanks</p>