尝试使用“npm install selenium-webdriver”,我仍然收到下面的错误。知道要走的路在哪里吗?
Error: The ChromeDriver could not be found on the current PATH. Please download the latest version of the ChromeDriver from http://chromedriver.storage.googleapis.com/index.html and ensure it can be found on your PATH.
at Error (<anonymous>)
at new ServiceBuilder (/var/www/nodejs/node_modules/selenium-webdriver/chrome.js:51:11)
at getDefaultService (/var/www/nodejs/node_modules/selenium-webdriver/chrome.js:216:22)
at new Driver (/var/www/nodejs/node_modules/selenium-webdriver/chrome.js:470:32)
at Builder.build (/var/www/nodejs/node_modules/selenium-webdriver/builder.js:302:14)
at Object.handle (/var/www/nodejs/node.js:31:4)
at next_layer (/var/www/nodejs/node_modules/express/lib/router/route.js:103:13)
at Route.dispatch (/var/www/nodejs/node_modules/express/lib/router/route.js:107:5)
at c (/var/www/nodejs/node_modules/express/lib/router/index.js:195:24)
at Function.proto.process_params (/var/www/nodejs/node_modules/express/lib/router/index.js:251:12)
最佳答案
好的,假设您使用的是Windows,请尝试以下步骤:
我希望这对您有所帮助-有一个很好的here教程
关于javascript - Selenium Nodejs CHROMEDRIVER路径,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26191142/