I'm trying to use protractor elementExplorer and not sure why I can't do it (I'm using Mac).
according to the documentation - http://angular.github.io/protractor/#/debugging I'm going to the protractor directory (use/local/bin) and type
node ./bin/elementexplorer.js
I'm getting the following error:
module.js:340
throw err;
^
Error: Cannot find module '/usr/local/bin/bin/elementexplorer.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
any help? thanks.
You need to cd
into the protractor
directory:
cd node_modules/protractor
node ./bin/elementexplorer.js
where node_modules
in your case should be under /usr/local/lib/
.
If you have protractor installed globally as the docs at https://angular.github.io/protractor/#/ suggest you should be able to start protractor --elementExplorer
anywhere and then issue commands such as browser.get('http://angular.github.io/protractor/#/
as per the api at https://angular.github.io/protractor/#/api
You can check your protractor install and version by doing protractor --version
Current verison is 3.0.0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With