title: php + selenium, how to get all <a href...> tags from one page
body: <p>i've got a question, regarding selenium + php (using PHPUnit_Extensions_SeleniumTestCase):</p>
  
  <p>i'm going through a loop, trying to get all  elements from a webpage, by doing something like:</p>
  
  <pre><code> $i = 1;
   while ( $this-&gt;isElementPresent("//a[" . $i . "]")) {
        $tagContents = $this-&gt;getText("//a[" . $i . "]");
        print $tagContents . "\n";
        $i++;
   }
  </code></pre>
  
  <p>and it's not finding all elements :(
  if i try to get the contents via $this->getText() a very few are filled, some are empty, and the overall amount of tags is way less than i really have on my page</p>
  
  <p>anyone got an idea what i might be doing wrong ?</p>