javascript - Protractor tests randomly stopping on Chrome -


i have e2e tests set protractor , cucumberjs, , struggling lot chrome. tests pass fine on firefox in chrome randomly stop in step. times hangs loading , url, other times sending keys stops, other times hangs trying "click" button. 1 have idea? works fine on firefox. i've tried lot of things: ignoresyncronization, waitforangular withoud luck... steps definition:

module.exports = function() { var login = new login();  this.given('i go on "$url"', function(url, callback) {     browser.get(url);     callback(); });  this.given('i logged in user "$username" , password "$password"', function(username, password, callback) {     browser.element(by.id('username')).sendkeys(username).then(function() {         browser.element(by.id('password')).sendkeys(password).then(function() {             browser.element(by.id('btnlogin')).click().then(callback);         });     }); });  this.then('the user redirected dashboard page on "$dashboardurl"', function(dashboardurl, callback) {     this.expect(browser.getcurrenturl()).to.eventually.equal(dashboardurl).and.notify(callback); });  this.then('i log user out', function(callback) {     login.getuserprofilemenuelement().click().then(function() {         login.getloguseroutelement().click();         callback();     }); }); 

};

here 2 different screenshot stopped, first time, stopped loading url, second time, sending keys:

https://dl.dropboxusercontent.com/u/1437542/run1.jpg https://dl.dropboxusercontent.com/u/1437542/run2.jpg


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -