selenium 2.33 does not start *chrome browser in grid mode

73 views
Skip to first unread message

xuetao niu

unread,
Aug 7, 2013, 5:36:44 AM8/7/13
to seleniu...@googlegroups.com
Hello,

I start Selenium grid in this way:

The hub:    java -jar selenium-2.33.0/selenium-server-standalone-2.33.0.jar -role hub -port 14444
The node:  java -jar selenium-2.33.0/selenium-server-standalone-2.33.0.jar -role node -hub http://localhost:14444 

And I use the DefaultSelenium API in Java to start a browser in this way:
new DefaultSelenium(serverHost, serverPort, "*chrome", browserURL);

The problem is that it cannot start the "*chrome" browser when running in grid mode, but it CAN do when running selenium in standalone mode. In both modes, grid hub and node, as well as the standalone server run on the same machine, so the environment is exactly the same. I would then guess it is a selenium bug. Have you seen the similar problem?

P.S. 
1. this is how I start selenium in standalone mode:  java -jar selenium-2.33.0/selenium-server-standalone-2.33.0.jar -port 14444
2. if I use *firefox as the constructor parameter, both standalone and grid modes work.
3. *chrome is not google's chrome browser, it is the firefox browser with compromised security where I can upload files and take screenshots. 

Thanks,
Xuetao

xuetao niu

unread,
Aug 28, 2013, 6:16:44 AM8/28/13
to seleniu...@googlegroups.com
I tried the latest 2.35.0, same problem, the exception is:

Caused by: com.thoughtworks.selenium.SeleniumException: org.openqa.grid.common.exception.GridException: Error forwarding the new session cannot find : {browserName=*chrome}
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:112)
at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:183)
at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:118)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:101)
at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:275)
at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:237)
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:100)

Please help.
Reply all
Reply to author
Forward
0 new messages