I am getting same error, it just open the mention URL and closes the browser with following error com.thoughtworks.selenium.SeleniumException: Timed out after 30000ms
Following is the code i am trying with Selenium RC and junit
I am getting same error, it just open the mention URL and closes the browser with following error com.thoughtworks.selenium.SeleniumException: Timed out after 30000ms
Following is the code i am trying with Selenium RC and junit
The page is taking more than 30000ms to load.
Try to change the time.
selenium.waitforPagetoLoad(60000)
instead of
selenium.waitforPagetoLoad(30000)
you can use looping and inside loop you can check specific element on the page is loaded or not.so that counter will wait till that elements get loaded, this way you can apply dynamic Wait control in your code.
for (int second = 0;; second++) {
if (second >= 160) fail("timeout");
try { if (selenium.isTextPresent("add element on the page here")) break; } catch (Exception e) {}
Thread.sleep(1000);
}