title: Selenium click() event seems not to be always triggered => results in timeout?
body: <p>Here's what I do:</p>
  
  <pre><code>selenium.click("link=mylink");
  selenium.waitForPageToLoad(60000);
  
  // do something, then navigate to a different page 
  // (window focus is never changed in-between)
  
  selenium.click("link=mylink");
  selenium.waitForPageToLoad(60000);
  </code></pre>
  
  <p>The link "mylink" does exist, the first invocation of click() always works. But the second click() sometimes seems to work, sometimes not.</p>
  
  <p>It looks like the click() event is not triggered at all, because the page doesn't even start to load. Unfortunately this behaviour is underterministic.</p>
  
  <p>Here's what I already tried:</p>
  
  <ol>
  <li><p>Set longer time timeout<br>
  => did not help</p></li>
  <li><p>Wait for an element present after loading one page<br>
  => doesn't work either since the page does not even start to load</p></li>
  </ol>
  
  <p>For now I ended up invoking click() twice, so:</p>
  
  <pre><code>selenium.click("link=mylink");
  selenium.waitForPageToLoad(60000);
  
  // do something, then navigate to a different page 
  // (window focus is never changed in-between)
  
  selenium.click("link=mylink");
  selenium.click("link=mylink");
  selenium.waitForPageToLoad(60000);
  </code></pre>
  
  <p>That will work, but it's not a really nice solution. I've also seen in another forum where someone suggested to write something like a 'clickAndWaitWithRetry':</p>
  
  <pre><code>  try {
        super.click("link=mylink");
        super.waitForPageToLoad(60000);
    }
    catch (SeleniumException e) {
        super.click("link=mylink");
        super.waitForPageToLoad(60000);
    }
  </code></pre>
  
  <p>But I think that is also not a proper solution....
  Any ideas/explanations why the click() event is sometimes not triggered?</p>