seleniumselenium-webdriverwebdriverselenium-gridgeckodriver

Parameter Exception - was passed main parameter but no main parameter was defined in your arg class while launching Selenium Grid Node


Error:

Parameter Exception - was passed main parameter but no main parameter was defined in your arg class

Snapshot of the error:

Commandline output

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

Solution

  • 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