I want to get all the number from a website , which are in the same row.
the all have the same Class :
<td class="sortable dsNumberId">
10999694994
</td>
I would like to return this to the clipboard and have a result like this :
10999694994
10949644992
10959594991
109796976
The number of value to collect is random, it can from 2 to 100 and the first class="sortable dsNumberId" is actually invalid (just the title with a link)
I have this script here :
tell application "Google Chrome"
tell tab 2 of window 1 to set DSIDsList to execute javascript "var outPut=[0]; var arr=document.getElementsByClassName('sortable dsPersonId');for (var i in arr) {outPut.push(arr[i].innerHTML)};outPut;"
end tell
The issue is at the end which give me a text " ", missing value, missing value, missing value}"
and at the beginning which give me the invalid title / URL which I don't need.