I am looking to retrieve an array of promises using Q.all(); such as the code snippet below:
return Q.all([
list[0].getCssValue('height'),
list[1].getCssValue('height'),
...,
list[list.length-1]
.getCssValue('height')
]);
I want to return all items in the list which can be obtained by array.length.
The issue I am facing is that I am unable to
for(var i = 0; i < list.length; i++)
in order to get the return items like
list[i].getCssValue('height');
So, how can I achieve this?