title: Symfony Crawler: how to check that a link to a particular page exists
body: <p>I'm writing some functional tests and i want to verify that the Edit link exists on the page if the user is logged in.</p>
  
  <p>The link is a simple <code>&lt;a href="/profile/22/edit"&gt;Edit&lt;/a&gt;</code>.</p>
  
  <p>How can I filter it using the Crawler component of Symfony?</p>
  
  <p>One solution is this:</p>
  
  <pre><code>$this-&gt;assertEquals(1, $crawler-&gt;filter('html:contains("&lt;a href="/profile/22/edit"&gt;")')-&gt;count());
  </code></pre>
  
  <p>But I'd like to use, instead, the tag selection, so how can I do this?</p>