javascript - Protractor testing- ng-click with parameter -


how test test ng-click function parameter inside within ng-repeat using protractor format:

<span ng-repeat = "name in names">    <a ng-click = "editname(name)"></a>  </span>

as @p.t. pointed out, protractor works on higher level , should not matter logic behind click. here how can click each link inside repeater:

element.all(by.repeater("name in names")).each(function (elm) {     var link = elm.element(by.css("a[ng-click*=editname]"));     link.click();      // assertions/expectations }); 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -