Open surajsalunkhe opened 3 years ago
Try running webdriver-manager update
to update the version of your chromedriver.
Also, you can see my configuration: https://github.com/andredesousa/essential-angular-scaffold/blob/main/e2e/protractor.conf.js
I have the same issue and I think this might be related to the webdriver-manager version that protractor uses. https://github.com/angular/webdriver-manager/commit/9fd6294517cdcd7fcf87994b84792db994d19003
Is it possible to update protractor's dependency?
You can call the file directly like node node_modules/protractor/bin/webdriver-manager update
Bug report
v15.12.0
7.0.0
CLI-11.2.6
89.0.4389.90
mac OS Catalina 10.15.7
Your protractor configuration file
exports.config = { //directConnect: true, seleniumAddress: 'http://localhost:4444/wd/hub',
// Capabilities to be passed to the webdriver instance. capabilities: { 'browserName': 'chrome' },
// Framework to use. Jasmine is recommended. framework: 'jasmine',
// Spec patterns are relative to the current working directory when // protractor is called. specs: ['example_spec.js'],
// Options to be passed to Jasmine. jasmineNodeOpts: { defaultTimeoutInterval: 30000 } };
describe('angularjs homepage', function() { it('should greet the named user', function() { browser.get('http://www.angularjs.org');
element(by.model('yourName')).sendKeys('Julie');
var greeting = element(by.binding('yourName'));
expect(greeting.getText()).toEqual('Hello Julie!'); });
describe('todo list', function() { var todoList;
beforeEach(function() { browser.get('http://www.angularjs.org');
todoList = element.all(by.repeater('todo in todoList.todos')); });
it('should list todos', function() { expect(todoList.count()).toEqual(2); expect(todoList.get(1).getText()).toEqual('build an AngularJS app'); });
it('should add a todo', function() { var addTodo = element(by.model('todoList.todoText')); var addButton = element(by.css('[value="add"]'));
addTodo.sendKeys('write a protractor test'); addButton.click();
expect(todoList.count()).toEqual(3); expect(todoList.get(2).getText()).toEqual('write a protractor test'); }); }); });