user3550498 user3550498 - 2 years ago 165
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 Source

Use last():

var elm = element.all(by.repeater('item in items')).last();;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download