Hi I am trying to loop through a node list in an CASPERJS
evaluate statement like so :
var t = this.evaluate(function() {
var t = document.querySelectorAll('.status');
var r = [];
for(var x = 0; x < t.length; x ++) {
r.push(t[x]);
}
return r;
})
While the array contains the correct number of entries, only the first contains a dom element, the rest returning undefined? This also happens if I return the t
nodelist on it's own.