如何在交互模式下运行selenum standanlone jar,以便我们可以从终端触发命令。当我运行如下所示异常发生时
java -jar selenium-server-standalone-3.0.1.jar -interactive
Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: -interactive
at com.beust.jcommander.JCommander.parseValues(JCommander.java:742)
at com.beust.jcommander.JCommander.parse(JCommander.java:282)
at com.beust.jcommander.JCommander.parse(JCommander.java:265)
at com.beust.jcommander.JCommander.<init>(JCommander.java:210)
at org.openqa.grid.selenium.GridLauncherV3$1.setConfiguration(GridLauncherV3.java:219)
at org.openqa.grid.selenium.GridLauncherV3.buildLauncher(GridLauncherV3.java:147)
at org.openqa.grid.selenium.GridLauncherV3.main(GridLauncherV3.java:73)
但是我能够以上述方式运行version 2.48.2
并且工作正常。
答案 0 :(得分:6)
从第3版开始,selenium团队更改了可用的配置选项(请参阅an example configuration)以及replaced the command line arguments parser to JCommander。
含义是;
-interactive
的支持已经下降。-D
个参数,即在java
命令之后。