yolunda. Linux'ta 5.10.0 düğümünü kullanıyorum.node.js, "ChromeDriver mevcut PATH'de bulunamadı" diyerek şikayetçi oluyor. Kromatlayıcı
[[email protected] mydir]$ node SkyNet.js
Validation Complete
/home/davea/node_modules/selenium-webdriver/chrome.js:185
throw Error(
^
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 (native)
at new ServiceBuilder (/home/davea/node_modules/selenium-webdriver/chrome.js:185:13)
at getDefaultService (/home/davea/node_modules/selenium-webdriver/chrome.js:362:22)
at Driver (/home/davea/node_modules/selenium-webdriver/chrome.js:771:34)
at Builder.build (/home/davea/node_modules/selenium-webdriver/builder.js:464:16)
at Object.<anonymous> (/home/davea/mydir/js/Optimus.js:14:4)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
chromedriver yolumda olmadığını söylüyor altında görüntülenir senaryomu, çalışan bazı sorunlar yaşıyorsunuz, ama sadece buradan uygun sürümünü indirilebilir - http://chromedriver.storage.googleapis.com/index.html?path=2.9/ ve gördüğünüz gibi, açık olduğunda benim YOL
aşağıdaki izinlere sahip[[email protected] mydir]$ echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/davea/bin:/home/davea/bin:/usr/lib/chromedriver
...
[[email protected] mydir]$ ls -al /usr/lib/chromedriver
-rwxr-xr-x 1 davea evotext 5503600 Feb 3 2014 /usr/lib/chromedriver
Ben de bu hatayı alıyorum neden olarak karıştı. Herhangi bir yardım için minnettarız - Dave