Not sure what is going here.....
This is how i defined my chrome driver
public static WebDriver getChromeBrowser() throws
MalformedURLException
{ DesiredCapabilities capability=null;
System.setProperty("webdriver.chrome.driver", "src//main//resources//
chromedriver//chromedriver.exe");
capability= DesiredCapabilities.chrome();
capability.setBrowserName("chrome");
capability.setPlatform(org.openqa.selenium.Platform.WINDOWS);
return new RemoteWebDriver(new URL("
http://selgrid:4444/wd/hub"),
capability);
}
cmd using to launch the node
java -jar selenium-server-standalone-2.20.0.jar -role node -hub
http://selgridin001:4444/grid/register -browser
"browserName=chrome,platform=WINDOWS"
Error when i start hub
16:58:07.684 INFO - Done: /status
16:58:12.512 INFO - Executing: [new session: {platform=WINDOWS,
browserName=chro
me, version=}] at URL: /session)
16:58:12.575 WARN - Exception thrown
java.util.concurrent.ExecutionException:
org.openqa.selenium.WebDriverException:
java.lang.reflect.InvocationTargetException
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27
19:03:04'
System info:
os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1',
java.vers
ion: '1.6.0'
Driver info: driver.version: unknown
at java.util.concurrent.FutureTask
$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at
org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSessi
on.java:139)
at
org.openqa.selenium.remote.server.DefaultSession.<init>(DefaultSessio
n.java:108)
at
org.openqa.selenium.remote.server.DefaultSession.createSession(Defaul
tSession.java:86)
at
org.openqa.selenium.remote.server.DefaultDriverSessions.newSession(De
faultDriverSessions.java:87)
at
org.openqa.selenium.remote.server.handler.NewSession.handle(NewSessio
n.java:62)
at
org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConf
ig.java:196)
at
org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverS
ervlet.java:580)
at
org.openqa.selenium.remote.server.DriverServlet.doPost(DriverServlet.
java:531)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
727)
at
org.openqa.selenium.remote.server.DriverServlet.service(DriverServlet
.java:503)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
820)
at
org.openqa.jetty.jetty.servlet.ServletHolder.handle(ServletHolder.jav
a:428)
at
org.openqa.jetty.jetty.servlet.ServletHandler.dispatch(ServletHandler
.java:677)
at
org.openqa.jetty.jetty.servlet.ServletHandler.handle(ServletHandler.j
ava:568)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:
1530)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:
1482)
at org.openqa.jetty.http.HttpServer.service(HttpServer.java:
909)
at
org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
at
org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:9
86)
at
org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
at
org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.
java:243)
at
org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.openqa.jetty.util.ThreadPool
$PoolThread.run(ThreadPool.java:534)
Caused by: org.openqa.selenium.WebDriverException:
java.lang.reflect.InvocationT
argetException
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27
19:03:04'
System info:
os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1',
java.vers
ion: '1.6.0'
Driver info: driver.version: unknown
at
org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructo
r(DefaultDriverFactory.java:73)
at
org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(De
faultDriverFactory.java:57)
at org.openqa.selenium.remote.server.DefaultSession
$BrowserCreator.call(
DefaultSession.java:177)
at org.openqa.selenium.remote.server.DefaultSession
$BrowserCreator.call(
DefaultSession.java:1)
at java.util.concurrent.FutureTask
$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExec
utor.java:885)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor
.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:
513)
at
org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructo
r(DefaultDriverFactory.java:63)
... 8 more
Caused by: java.lang.IllegalStateException: The path to the
chromedriver executa
ble must be set by the webdriver.chrome.driver system property; for
more informa
tion, see
http://code.google.com/p/selenium/wiki/ChromeDriver. The
latest versio
n can be downloaded from
http://code.google.com/p/chromedriver/downloads/list
at
com.google.common.base.Preconditions.checkState(Preconditions.java:17
2)
at
org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(C
hromeDriverService.java:103)
at
org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:110)
... 13 more
16:58:12.637 WARN - Exception: The path to the chromedriver executable
must be s
et by the webdriver.chrome.driver system property; for more
information, see htt
p://
code.google.com/p/selenium/wiki/ChromeDriver. The latest version
can be down
loaded from
http://code.google.com/p/chromedriver/downloads/list
16:58:12.700 INFO - Executing:
org.openqa.selenium.remote.server.handler.Status@
acb158 at URL: /status)
16:58:12.715 INFO - Done: /status
16:58:17.731 INFO - Executing:
org.openqa.selenium.remote.server.handler.Status@
b33d0a at URL: /status)
16:58:17.731 INFO - Done: /status
16:58:22.762 INFO - Executing:
org.openqa.selenium.remote.server.handler.Status@
89cc5e at URL: /status)
16:58:22.762 INFO - Done: /status
29250 [SeleniumServerShutDownHook] INFO
org.openqa.selenium.server.SeleniumServe
r - Shutting down...
29250 [Acceptor
ServerSocket[addr=
0.0.0.0/0.0.0.0,port=0,localport=5555]] INFO o
rg.openqa.jetty.util.ThreadedServer - Stopping Acceptor
ServerSocket[addr=0.0.0.
0/
0.0.0.0,port=0,localport=5555]
29359 [SeleniumServerShutDownHook] INFO
org.openqa.jetty.http.SocketListener - S
topped SocketListener on
0.0.0.0:5555
29422 [SeleniumServerShutDownHook] INFO
org.openqa.jetty.util.Container - Stoppe
d HttpContext[/selenium-server/driver,/selenium-server/driver]
29469 [SeleniumServerShutDownHook] INFO
org.openqa.jetty.util.Container - Stoppe
d HttpContext[/selenium-server,/selenium-server]
29516 [SeleniumServerShutDownHook] INFO
org.openqa.jetty.util.Container - Stoppe
d HttpContext[/,/]
29516 [SeleniumServerShutDownHook] INFO
org.openqa.jetty.util.Container - Stoppe
d org.openqa.jetty.jetty.servlet.ServletHandler@76cbf7
29562 [SeleniumServerShutDownHook] INFO
org.openqa.jetty.util.Container - Stoppe
d HttpContext[/wd,/wd]
29562 [SeleniumServerShutDownHook] INFO
org.openqa.jetty.util.Container - Stoppe
d org.openqa.jetty.jetty.Server@1f1fba0