selenium.open timeouts for strange reasons

Have you ever been in situations when your selenium RC test times out after the selenium.open command, the page is loaded but selenium just tells you that it has timed out after 30000ms.

I had same problem in Java today when i got the selenium RC 1.0.3 and i fixed the problem by setting the selenium timeout to be “0”. so i have done

@BeforeClass
public void setUp(){
selenium = new DefaultSelenium(“localHost”, 4444, “*iexplore”, url);
selenium.start();
selenium.setTimeout(“0”);
}

and then i have used a waitForPageToLoad in each of the selenium methods that needs to wait - open, click …..

selenium.open(url);
selenium.waitForPageToLoad(“5000”);

selenium.click(“btnG”);
selenium.waitForPageToLoad(“5000”);


Hopefully you find this useful.

You Might Also Like
Comments
comments powered by Disqus