tags:

views:

311

answers:

2

Any clues on what causes this?

+1  A: 

This is a known issue in Selenium RC 1.0.3. Details can be found here: http://code.google.com/p/selenium/issues/detail?id=408

The workaround for 1.0.3 is to overload the open command with one that passes a boolean as a second argument set to true.

Alternatively, you could wait for a new version to be released, however most development efforts are focused on Selenium 2. This is currently in alpha, and the latest version (2.0a4) does not have this issue.

Dave Hunt
A: 

Thanks. Got the solution..For any other people who chance upon this problem, here is the solution:

Replace setUp(...) with

Integer port = 4444; String browserString= "*firefox"; String url = "http://yoururl.com"; selenium = new DefaultSelenium("localhost",port,browserString,url) { public void open(String url) { commandProcessor.doCommand("open", new String[] {url,"true"});}; selenium.start();

Rajat