title: Why don't all of the tests in WWW::Selenium appear to run?
body: <p>I have a test file that includes the following code. The page opens up and the first three tests run but the next 3 don't run. They don't fail. They just don't run.</p>
  
  <pre><code>my $sel = Test::WWW::Selenium-&gt;new(
      host         =&gt; 'localhost',
      port         =&gt; 4444,
      browser      =&gt; 'firefox',
      browser_url  =&gt; $uri,
      singlewindow =&gt; 1,
  );
  
  $sel-&gt;open_ok('/');
  $sel-&gt;is_element_present_ok('username');
  $sel-&gt;is_element_present_ok('password');
  $sel-&gt;is_text_present('Username');
  $sel-&gt;is_text_present('Password');
  $sel-&gt;is_text_present('Login');
  </code></pre>
  
  <p>Then I log into the form.</p>
  
  <pre><code>$sel-&gt;type("name=username", $username);
  $sel-&gt;type("name=password", $password);
  $sel-&gt;submit('dom=document.forms["formfield"]');
  $sel-&gt;is_text_present('Change Log');
  </code></pre>
  
  <p>I'm able to log in and the text 'Change Log' is present on the page but the test never runs. The test for text that doesn't exist doesn't run either.</p>
  
  <pre><code>$sel-&gt;is_text_present('Fee based gumbo');
  </code></pre>
  
  <p>Anyone know why these tests wouldn't be running?</p>
  
  <p>I also have a test for a link</p>
  
  <pre><code>&lt;a style="text-decoration:none;" href="/settings"&gt;Settings&lt;/a&gt;
  </code></pre>
  
  <p>as</p>
  
  <pre><code>$sel-&gt;click('//a[contains(@href, "/settings")]');
  </code></pre>
  
  <p>That causes the test to crash. Is there a reason why that wouldn't be found?</p>
  
  <p><em>EDIT:</em></p>
  
  <p>I'd been using the <a href="http://p3rl.org/WWW%3a%3aSelenium" rel="nofollow">WWW::Selenium</a> page, not <a href="http://p3rl.org/Test%3a%3aWWW%3a%3aSelenium" rel="nofollow">Test::WWW::Selenium</a>.</p>
  
  <p>This module is a WWW::Selenium subclass providing some methods useful for writing tests. For each Selenium command (<code>open</code>, <code>click</code>, <code>type</code>, …) there is a corresponding <code>&lt;command&gt;_ok</code> method that checks the return value (<code>open_ok</code>, <code>click_ok</code>, <code>type_ok</code>).</p>
  
  <p>The xpath problem <code>$sel-&gt;click('//a[contains(@href, "/settings")]');</code> simply just needed the double quotes removed.</p>