2017-10-18 2 views
-3

Je suis en train d'installer autonome de sélénium en utilisant cette commande vs code:Je suis en train d'installer le sélénium autonome

selenium-standalone install 

Mais il montre l'erreur suivante:

** 

selenium-standalone install selenium-standalone : The term 'selenium-standalone' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + selenium-standalone install + ~~~~~~~~~~~~~~~~~~~ 
     + CategoryInfo   : ObjectNotFound: (selenium-standalone:String) [], CommandNotFoundException 
     + FullyQualifiedErrorId : CommandNotFoundException****strong text**** 

** 
+0

vous devez mettre le dossier dans lequel le sélénium-autonome dans l'environnement PATH

  • Ouvrir un nouveau terminal pour exécuter « installer sélénium autonome » variable – yong

  • +0

    @yong Je l'ai fatigué, mais ne fonctionne toujours pas:/ – einszweidrei

    +0

    pourriez-vous me dire où vous obtenez ce guide de commande pour installer autonome de sélénium? – yong

    Répondre

    0

    Vous devez installer le sélenium-standalone en tant que package global, puis ajoutez le dossier global d'installation du package dans votre variable PATH Envirormen.

    1. exécuter « installer NPM sélénium autonome -g »
    2. exécuter « NPM préfixe get config », il affichera un chemin de dossier, copier ce chemin et ouvert « Envirormen variable » de dialogue de configuration à partir du panneau de configuration de Windows ou menu de droite: 'Propriétés' de 'Poste de travail'.
    3. Ajoutez un point-virgule à la fin de la valeur actuelle de la variable Environnen 'PATH', puis ajoutez le chemin ci-dessus. (Ne pas exécuter la commande sur ancien terminal ouvert)

    enter image description here