title: How to handle alert in selenium RC during page load
body: <p>In my application I have alert on pageload.
  The alert comes when i visited a specific page of my application and it is on page load. </p>
  
  <p>I tried by:</p>
  
  <pre><code>selenium.click("click on the button, which takes me to a new page");
  if(selenium.isAlertPresent())
      selenium.getAlert();
  selenium.waitForPageToLoad("30000");
  </code></pre>
  
  <p>But no luck. Can any one please help me how to handle alert in selenium RC on page load?</p>
  
  <p>Screenshot:</p>
  
  <p><a href="http://content.screencast.com/users/mahadi_OP/folders/Jing/media/77e6c00e-e146-455c-861a-03d3cab9027d/2012-01-08_1703.png" rel="nofollow noreferrer">screenshot http://content.screencast.com/users/mahadi_OP/folders/Jing/media/77e6c00e-e146-455c-861a-03d3cab9027d/2012-01-08_1703.png</a></p>