title: Then I should not see (Cucumber)
body: <p>I am trying to use Cucumber to check a filter feature on a web page. If I check specific movie ratings, then it should only show those movies with those ratings in the table. Here is my scenario:</p>
  
  <pre><code>When I check the following ratings: 'PG', 'R'
  And I press Refresh
  Then I should not see /PG/
  </code></pre>
  
  <p>And here is my step definition:</p>
  
  <pre><code>Then /^(?:|I )should not see \/([^\/]*)\/$/ do |regexp|
    regexp = Regexp.new(regexp)
    if page.respond_to? :should
      page.should have_no_xpath('//*', :text =&gt; regexp)
    else
      assert page.has_no_xpath?('//*', :text =&gt; regexp)
    end
  end
  </code></pre>
  
  <p>But I am getting an "Ambiguous match" error.</p>
  
  <p>Here is some of the HTML in case it's important:</p>
  
  <pre><code>  &lt;table id='movies'&gt;
      &lt;thead&gt;
        &lt;tr&gt;
          &lt;th&gt;Movie Title&lt;/th&gt;
          &lt;th&gt;Rating&lt;/th&gt;
          &lt;th&gt;Release Date&lt;/th&gt;
          &lt;th&gt;More Info&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
        &lt;tr&gt;
          &lt;td&gt;Aladdin&lt;/td&gt;
          &lt;td&gt;G&lt;/td&gt;
          &lt;td&gt;1992-11-25 00:00:00 UTC&lt;/td&gt;
          &lt;td&gt;&lt;a href="/movies/1"&gt;More about Aladdin&lt;/a&gt;&lt;/td&gt;
        &lt;/tr&gt;
  </code></pre>
  
  <p>Thank you!</p>