1、在執行uirecorder錄制的腳本前,先啟動WebDriver服務
報錯:Error: Missing C:\Users\b\node_modules\selenium-standalone\.selenium\chromedrive
r\2.31-x64-chromedriver
2、將錯誤貼到Google,GitHub里有個回答,安裝selenium-standlone.(
https://github.com/vvo/selenium-standalone)
npm install selenium-standalone@latest -g #OK
selenium-standalone install #到這里又提示錯誤
selenium-standalone start
2、sele-standalone install的時候selenium、chrome、ie、firefox、edge都安裝成功了,到
geckodriver-v0.18.0-win64.zip的時候,Downloads鏈接錯誤,not found。於是跑到GitHub去下載
https://github.com/mozilla/geckodriver/releases/
啟動WebDriver服務: 在cmd中將目錄切換至Selenium-sever的目錄下C:\Users\17972\AppData\Roaming\npm\node_modules\selenium-standalone\.selenium\selenium-server 執行命令java -jar 3.141.5-server.jar(參考
https://www.cnblogs.com/ivy001/p/8952708.html )