title: How can you test that an element does not exist with PHPUnit/Selenium?
body: <p>I'm new to PHPUnit and Selenium, and I want to test a 'remove' button by confirming that an element with a given ID exists before the button is clicked, but no longer exists after the button is clicked.</p>
  
  <p>If I use something like this to check that the element has been deleted:</p>
  
  <pre><code>$this-&gt;assertFalse($this-&gt;byId('idRemoved'));
  </code></pre>
  
  <p>Then I get a test failure in <code>byId()</code> because it can't find <code>idRemoved</code> (which is true, because it's not there.)</p>
  
  <p>How can I test for the lack of an element, so the test fails if <code>idRemoved</code> is found?</p>