angularjs – 如何手动安装selenium webdriver-manager?

我正在尝试安装量角器.当我打电话给webdriver-manager时,我得到:

Selenium Standalone is not present. Install with webdriver-manager update --sta
dalone

由于连接问题,我无法使用webdriver-manager更新安装此项,因此我手动将chromedriver.exe和selenium-server-standalone-2.46.0安装在我的Windows路径中的文件夹中.我错过了其他任何文件吗?

更新:selenium现在正在运行,但是当我尝试运行量角器conf.js时出现此错误:

09:52:37.911 ERROR - org.apache.commons.exec.ExecuteException: Execution failed
(Exit value: -559038737. Caused by java.io.IOException: Cannot run program "C:\P
rogramData\work\nodejs\npm\node_modules\protractor\node_modules\chromedriver\bin
\chromedriver" (in directory "."): CreateProcess error=193, %1 is not a valid Wi
n32 application)

最佳答案 你可以下载selenium-server-standalone.jar并运行这样的命令:

java -jar selenium-server-standalone.jar

点赞