2016-12-22 1 views
3

Comment exécuter le fichier selenum standanlone en mode interactif afin que nous puissions déclencher des commandes à partir du terminal. Quand je cours comme indiqué ci-dessous exception se produitSelenium 3.0.1 -interactive donne ParameterException: option inconnue: -interactive

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) 

Cependant, je suis en mesure d'exécuter version 2.48.2 de la manière ci-dessus et il fonctionne très bien.

Répondre

5

À partir de la version 3, l'équipe Selenium a modifié les options de configuration disponibles (voir an example configuration), ainsi que replaced the command line arguments parser to JCommander.

les implications sont;

  • Certaines options peuvent ne plus être disponibles ou leurs noms ont changé. en regardant the V3 example configuration, il semble que le support pour -interactive a chuté. Vous devez spécifier tous les arguments -D en premier, c'est-à-dire juste après la commande java.
+1

Merci. C'est exactement l'information dont j'avais besoin. –