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
Post a Comment