javascript - multiple clicks on protractor do not work -


i writing protractor code preforms clicks on same page. reason preforms 1 click , finishing test successfully. fyi clicks aren't redirecting browser somewhere else

function hitl (i) {   nodes.get(i).click().then(     function(){   //  browser.driver.sleep(1000);     i++      if(i<nodes.length)         hitl(i); }  );  } 

i think can make simpler using each():

nodes.each(function (node) {     node.click(); }); 

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -