I am currently using Protractor to do end-to-end testing on my application. I've been trying to get the original array that was used to construct a set of
ng-repeat elements.
I tried using the following:
var object = element.all(by.repeater("car in cars"));
console.log(object);
The above returns a small object with only a few properties and methods.
I also tried resolving the above with a $promise:
element.all(by.repeater("car in cars")).then(function(data){
console.log(data);
});
This logs an object with a long list of properties and methods, but I still do not see anything that would give me the original array used to to create the ng-repeat elements.
How can I access the original array used?