Having an issue with my script where it is only returning one element out of a class that has 10 elements. Can anyone help me pinpoint the problem?
`function() { var vins = document.querySelectorAll('.dws-vehicle-listing-item-field.dws-vehicle-field-vin');
for (var i = 0; i < vins.length; i++) {
var array = [];
var items = vins[i].innerText.replace(/ /g, "").split('\n')[2];
array.push(items);
}
return array;
}`
Attempted to add exclusions in the code string to fix the issue, but still only getting one element returned. Any suggestions?