I am having an issue getting gulp to find chromedriver. I am a total n00b at this. I looked at the code in local.js and it is using relative pathing which is a bit confusing, but if I am right, I should have the chromedriver executable in node_modules/protractor/selenium, but that doesn't seem to work. I have tried the zip file and the exploded zip. I am obviously missing something here.
/private/var/root/ngen/client/node_modules/protractor/lib/driverProviders/local.js:42
throw new Error('Could not find chromedriver at ' +
^
Error: Could not find chromedriver at /private/var/root/ngen/client/node_modules/protractor/selenium/chromedriver.exe
at LocalDriverProvider.addDefaultBinaryLocs_ (/private/var/root/ngen/client/node_modules/protractor/lib/driverProviders/local.js:42:15)
at LocalDriverProvider.setupEnv (/private/var/root/ngen/client/node_modules/protractor/lib/driverProviders/local.js:59:8)
at Runner.run (/private/var/root/ngen/client/node_modules/protractor/lib/runner.js:234:31)
at Object.init (/private/var/root/ngen/client/node_modules/protractor/lib/launcher.js:137:12)
at Object.<anonymous> (/private/var/root/ngen/client/node_modules/protractor/lib/cli.js:129:23)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
{ [Error: protractor exited with code 8]
plugin: 'gulp-protractor',
showStack: false,
message: 'protractor exited with code 8' }
[16:04:40] 'protractor' errored after 142 ms
[16:04:40] Error in plugin 'gulp-protractor'
protractor exited with code 8
Can someone point me in the correct direction?
Captain Vic
ubuntu@ubuntu:~/ngen/client$ find . -name chromedriver
./node_modules/.bin/chromedriver
./node_modules/chromedriver
./node_modules/chromedriver/chromedriver
./node_modules/chromedriver/chromedriver/chromedriver
./node_modules/chromedriver/lib/chromedriver
./node_modules/chromedriver/lib/chromedriver/chromedriver
./node_modules/chromedriver/bin/chromedriver
Is this installed correctly? I used npm to install it. Why so many executables with that name?
bash-3.2# ls -l `find . -name chromedriver`
lrwxr-xr-x 1 root wheel 32 Aug 28 09:50 ./node_modules/.bin/chromedriver -> ../chromedriver/bin/chromedriver
-rwxr-xr-x 1 root wheel 398 Jun 16 21:41 ./node_modules/chromedriver/bin/chromedriver
-rw-rw-rw- 1 root wheel 11938840 Aug 28 09:50 ./node_modules/chromedriver/chromedriver/chromedriver
-rwxr-xr-x 1 root wheel 11938840 Aug 28 09:50 ./node_modules/chromedriver/lib/chromedriver/chromedriver
./node_modules/chromedriver:
total 48
-rw-r--r-- 1 root wheel 51 Jun 16 21:41 .npmignore
-rw-r--r-- 1 root wheel 127 Jun 16 21:41 .travis.yml
-rw-r--r-- 1 root wheel 2420 Jun 16 21:41 README.md
drwxr-xr-x 3 root wheel 102 Jun 16 21:41 bin
drwxr-xr-x 4 root wheel 136 Aug 28 09:50 chromedriver
-rw-r--r-- 1 root wheel 5694 Jun 16 21:41 install.js
drwxr-xr-x 4 root wheel 136 Aug 28 09:50 lib
drwxr-xr-x 7 root wheel 238 Aug 28 09:50 node_modules
-rw-r--r-- 1 root wheel 1611 Aug 28 09:50 package.json
./node_modules/chromedriver/chromedriver:
total 31360
-rw-rw-rw- 1 root wheel 11938840 Aug 28 09:50 chromedriver
-rw-r--r-- 1 root wheel 4116418 Aug 28 09:50 chromedriver_mac32.zip
./node_modules/chromedriver/lib/chromedriver:
total 31360
-rwxr-xr-x 1 root wheel 11938840 Aug 28 09:50 chromedriver
-rw-r--r-- 1 root wheel 4116418 Aug 28 09:50 chromedriver_mac32.zip
Obviously I am missing something here.
CaptainVic