0
我試圖運行谷歌chroome與webdrive但我總是得到錯誤使用Chrome驅動程序與WebDrive和硒2.4
java -jar ..\..\Selenium\selenium-server-2.4.0\selenium-server-standalone-2.4.0.jar -role webdriver -hub http://localhost:4444/grid/register -Dwebdriver.chrome.driver=..\..\Selenium\Driver\GoogleChroome\chromedriver.exe
,但我得到這個錯誤:
D:\PROJEKTI\crawler\WebCrawlerSuite\DLL\RunSelenium\Grid2>java -jar ..\..\Seleni
um\selenium-server-2.4.0\selenium-server-standalone-2.4.0.jar -role webdriver -h
ub http://localhost:4444/grid/register -Dwebdriver.chrome.driver=D:\PROJEKTI\cra
wler\WebCrawlerSuite\DLL\Selenium\Driver\GoogleChroome\chromedriver.exe
23.8.2011 21:04:32 org.openqa.grid.selenium.GridLauncher main
INFO: Launching a selenium grid node
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
at org.openqa.grid.common.CommandLineOptionHelper.getParamValue(CommandL
ineOptionHelper.java:45)
at org.openqa.grid.common.RegistrationRequest.loadFromCommandLine(Regist
rationRequest.java:389)
at org.openqa.grid.common.RegistrationRequest.build(RegistrationRequest.
java:351)
at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:57)
我在做什麼錯?
THX的答案托馬斯解決了它 – senzacionale