Use this card to do this. This will return a pending one, which will be resolved with the values ββin the array, so if you have this:
this.mappedVals =element.all(by.repeater('row in rows').column('{{row}}')).map(function (elm) { return elm.getText(); });
It will be resolved as follows:
this.inResults = function(nameString) { var foundit = ''; mappedVals.then(function (textArr) {
And use this in the Spec file, for example,
friendPage.inResults('Jo').then(function(findIt){ expect(findIt).toBeTruthy(); });
source share