Reputation: 95
I am able to run my protractor from a batch file (protractor conf.js) and the script is working fine I have installed my protractor globally and done environment settings too. But when I am running my batch file from eclipse after doing settings from external tool configuration .its giving error "'protractor' is not recognized as an internal or external command, operable program or batch file." My conf.js
exports.config = {
framework: 'jasmine',
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['spec.js']
}
My spec.js
describe('Protractor Demo App', function() {
it('should have a title', function() {
browser.get('http://juliemr.github.io/protractor-demo/');
expect(browser.getTitle()).toEqual('Super Calculator');
});
});
My runner.bat
protractor conf.js
Upvotes: 0
Views: 642
Reputation: 13712
If you double confirmed the global protractor install folder had in PATH
environment, and it still can't work. Please try to add a PATH
in Environment
Tab of Eclipse run configuration, and point the PATH
to global protractor install folder as following:
Upvotes: 1