I've been going through the documentation trying to figure out exactly what the column method does, but I can't seem to find a clear explanation. Can anyone shed some light on its functionality?
Here's the code I'm working with:
var phoneNameColumn = element.all(by.repeater('phone in phones').column('phone.name'));
var query = element(by.model('query'));
function getNames() {
return phoneNameColumn.map(function(elm) {
return elm.getText();
});
}
query.sendKeys('tablet'); //narrowing down the dataset for concise test assertions
expect(getNames()).toEqual([
"Motorola XOOM\u2122 with Wi-Fi",
"MOTOROLA XOOM\u2122"
]);