0

When am trying to launch chrome browser using selenium it throws me error.

Am using this command in my code "selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.google.com/");

Quick learner
  • 699
  • 4
  • 22
  • 39
  • Look at this question [here it is] : http://stackoverflow.com/questions/1317055/how-to-run-google-chrome-with-selenium-rc It reamains the same problem – Leo Feb 20 '13 at 08:17

2 Answers2

1

f you want to launch Google Chrome, you will have to use something else than "*chrome".

Using Selenium RC in interactive mode, with something like this

$ java -jar selenium-server.jar -interactive and using the getNewBrowserSession command not correctly :

cmd=getNewBrowserSession I get the list of browsers is supports :

23:43:09.317 INFO - Got result: Failed to start new browser session: Browser not supported: (Did you forget to add a *?)

Supported browsers include: *firefox *mock *firefoxproxy *pifirefox *chrome *iexploreproxy *iexplore *firefox3 *safariproxy *googlechrome *konqueror *firefox2 *safari *piiexplore *firefoxchrome *opera *iehta *custom on session null So, I'm guessing you should be able to launch Google Chrome using "*googlechrome" instead of "*chrome".

-reference - sir pascal martin . :D

anjon
  • 74
  • 5
0

Are you using Selenium RC?

I use WebDriver, and the code that I used to open Chrome is:

System.setProperty("webdriver.chrome.driver", "<localpath of Chrome driver>");
WebDriver chromeobj = new ChormeDriver();
chromeobj.get("www.google.com");
josliber
  • 43,891
  • 12
  • 98
  • 133
Srekk
  • 136
  • 5
  • 15