错误:
Parameter Exception - was passed main parameter but no main parameter was defined in your arg class
错误快照:
枢纽 - 10.72.24.148:5555
我正在使用命令行运行节点:
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
启动Selenium Grid Node的命令容易出错。你需要在"..."
周围放下双引号,即C:\geckodriver.exe
,并用退回的反斜线替换单背斜线,即\
,即\\
,如下所示:
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
有相同的错误,上面的帮助,但也在Powershell中发现,你必须使用双引号,例如
java -"Dwebdriver.chrome.driver"=C:\Tools\chromedriver.exe -jar .\selenium-server-standalone-3.141.59.jar
上面似乎工作正常,请注意“Dwebdriver.chrome.driver”