Reputation: 325
Error:
Parameter Exception - was passed main parameter but no main parameter was defined in your arg class
Snapshot of the error:
Hub - 10.72.24.148:5555
I am running node using command line:
java -Dwebdriver.gecko.driver="C:\geckodriver.exe" -jar selenium-server-standalone-3.141.59.jar -role node -hub http://10.72.24.148:5555/grid/register -port 5566
Upvotes: 8
Views: 26899
Reputation: 1
I got the same error and fixed with this
java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-3.9.1.jar -role node -hub http://192.168.1.185:4444/grid/register -maxSession 100 -browser browserName=”chrome”,version=ANY,platform=WINDOWS,maxInstances=50
Upvotes: 0
Reputation: 4637
Had the same error, above helps but also found in addition in Powershell, you have to use double quote, for example
java -"Dwebdriver.chrome.driver"=C:\Tools\chromedriver.exe -jar .\selenium-server-standalone-3.141.59.jar
Above seems to work fine, note "Dwebdriver.chrome.driver"
Upvotes: 1
Reputation: 193098
The command to launch the Selenium Grid Node is error prone. You need to drop the double quotes i.e. "..."
around C:\geckodriver.exe
and replace the single back slash i.e. \
with escaped back slash i.e. \\
as follows:
java -Dwebdriver.gecko.driver=C:\\geckodriver.exe -jar selenium-server-standalone-3.141.59.jar -role node -hub http://10.72.24.148:5555/grid/register -port 5566
Upvotes: 3