我正在尝试在vs代码中使用此命令安装selenium standalone:
selenium-standalone install
但它显示以下错误:
**
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 :(得分:4)
您需要将selenium-standalone安装为全局程序包,然后将全局程序包安装文件夹附加到PATH Envirormen变量中。