我正在尝试运行selenium服务器,并出现错误:
rond-macpro:selenium eladb$ java -Dwebdriver.chrome.driver=./chromedriver -r selenium-server-standalone-2.44.0.jar Unrecognized option: -r Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
没有-r(反正是什么?)
rond-macpro:selenium eladb$ java -Dwebdriver.chrome.driver=./chromedriver selenium-server-standalone-2.44.0.jar Error: Could not find or load main class selenium-server-standalone-2.44.0.jar
我应该如何启动服务器?
如何设置非默认端口来收听?
这两篇文章:1 2-关于语法矛盾。我认为。
java -jar seleniumjar.jar -Dwebdriver.chrome.driver=./chromedriver
如果要指定端口,请执行
java -jar seleniumjar.version.jar -Dwebdriver.chrome.driver=./chromedriver -port 4545
从3.8.1开始,不再需要指定驱动程序:
java -jar seleniumjar.jar