user3550498 user3550498 - 5 months ago 33
Javascript Question

How to find the last element of ng-repeater when testing with Protractor

I need to find and click the last element (byID) of ng-repeater.

Answer

Use last():

var elm = element.all(by.repeater('item in items')).last();
elm.click();
Comments