I tried to take the inner text from this markup:
<span ng-if="vm.totalRecords > 1" class="ng-binding ng-scope">
Displaying results 1-25 of 17,430
</span>
Using this selector:
document.querySelectorAll('div.Dashboard-section div.pure-u-1-1 span.ng-binding.ng-scope').innerText
It returns undefined
. Any suggestions what am I doing wrong?