module seleniumwebdriver not found.
reinstalling codeceptjs with the following.
sudo npm install codeceptjs webdriverio selenium-webdriver -g /usr/local/bin/codeceptjs -> /usr/local/lib/node_modules/codeceptjs/bin/codecept.js /usr/local/bin/wdio -> /usr/local/lib/node_modules/webdriverio/bin/wdio
- [email protected]
- [email protected]
- [email protected] updated 5 packages in 12.224s
What do you get instead?
Could not load helper SeleniumWebdriver from module './helper/SeleniumWebdriver': Cannot find module 'co'
I'm pretty sure this is because selenium-webdriver is no longer supported in codeceptjs. However don't worry you can use the Protractor Helper (with the angular: false option for non-angular apps), and the api is the same :)
It is mentioned in the docs.
So to install the dependencies run:
npm install codeceptjs -g
npm install protractor --save-dev
npm install webdriverio --save-dev
I'm a little bit sceptical of doing installing multiple npm packages in one command, so it might be safer to install it one at a time.
thanks, i used those but im still getting
Could not load helper SeleniumWebdriver from module './helper/SeleniumWebdriver': Cannot find module 'co'
Can you try deleting the node_modules/codeceptjs folder and try to install it again.
Also what node version are you using?
node -v v8.9.0
thanks ill try to create a fresh install..
same warning.
Could not load helper SeleniumWebdriver from module './helper/SeleniumWebdriver': Cannot find module 'co'
Ok more troubleshooting:
- What is your dev setup? (I've run the command on os x 10.12.6 running node 8.9.3)
- Did you delete the whole
node_modulesfolder? - Try installing not using the global npm option. i.e.
npm install codeceptjs. Though you have to be within an npm project (i.e. having runnpm initalready)
- When is this error message occuring, during the
npm install? Or are you running a command after the installation?
after running codeceptjs run --steps
I created a new init folder and it worked.
I’m guessing that was because you previously had the deprecated selenium webdriverio helper defined in your configuration and not protractor.
But I’m glad it now works for you :)