How to use browser options in selenium?

Posted by Guru1985 on Stack Overflow See other posts from Stack Overflow or by Guru1985
Published on 2010-06-09T12:10:40Z Indexed on 2010/06/09 12:32 UTC
Read the original article Hit count: 370

Filed under:
|

I have a browser which takes certain parameters as options as shown below.

testbrowser.exe -id=test -url=http://www.google.com/.

Below is my selenium code.

selenium = new DefaultSelenium("localhost", 4444, "*custom "+testBrowser+" -id=test -url=", "http://www.google.com/");
selenium.start();
selenium.open("http://www.yahoo.com");

When i execute this i am getting the below error.

java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Error while launching browser at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:103)

I think the problem is with options that my browser requires as the same code works fine with firefox or IE.

Please help me in solving this options issue.

Thanks in Advance Gururaj R

© Stack Overflow or respective owner

Related posts about selenium

Related posts about selenium-rc