I am a new Protractor. I am trying to run a sample unit test on my first Angular2 application.
my conf.js file has :
exports.config = {
seleniumAddress: 'http://localhost:3000/login',
specs: ['todo-spec.js'],
capabilities: {
'browserName': 'chrome',
chromeOnly:true ,
directConnect: true }
};
2.my 'todo-spec.js' file has :
describe('Authentication capabilities', function() {
var email = element(by.id('inputusername'));
var password = element(by.id('inputPassword'));
var loginButton = element(by.class('btn-success'));
it('should redirect to the login page if trying to load protected page while not authenticated', function() {
browser.get('http://localhost:3000/login');
loginURL = browser.getCurrentUrl();
email.sendKeys("demo");
password.sendKeys("demo");
loginButton.click();
});
});
but when i try to run the protractor by the following command "protractor "filepath\conf.js",
Getting " E/launcher - Process exited with error code 199" error.
can anyone please let me know, where I'm doing mistake?