When attempting to run Protractor using some code I found online, the WebDriver manager shuts down right after entering protractor config.js. I have Google Chrome installed, but my default browser is Firefox. I am wondering if this could be related to the issue.
Here is the code snippet for todo-spec.js:
describe('angularjs homepage todo list', function () {
it('should add a todo', function () {
browser.get('https://angularjs.org');
element(by.model('todoList.todoText')).sendKeys('write first protractor test');
element(by.css('[value="add"]')).click();
var todoList = element.all(by.repeater('todo in todoList.todos'));
expect(todoList.count()).toEqual(3);
expect(todoList.get(2).getText()).toEqual('write first protractor test');
// You wrote your first test, cross it off the list
todoList.get(2).element(by.css('input')).click();
var completedAmount = element.all(by.css('.done-true'));
expect(completedAmount.count()).toEqual(2);
});
});
And here is the configuration file config.js:
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['todo-spec.js']
};