title: How do you get selenium to recognize that a page loaded?
body: <p>In certain unknown situations selenium does not detect that a page has loaded when using the open method. I am using the Java API. For example (This code will not produce this error. I don't know of an externally visible page that will.):</p>
  
  <pre><code>Selenium browser = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.google.com");
  browser.start();
  browser.open("http://www.google.com/webhp?hl=en");
  browser.type("q", "hello world");
  </code></pre>
  
  <p>When the error occurs, the call to 'open' times out, even though you can clearly see that the page has loaded successfully before the timeout occurs. Increasing the timeout does not help. The call to 'type' never occurs, no progress is made.</p>
  
  <p>How do you get selenium to recognize that the page has loaded when this error occurs?</p>