vendredi 20 février 2015

Trying to click on 1,000 spans on a web-page using a program. Is this possible?

My web-page has a number of icons, each of which is in a different row of a table, which can be identified like so.


There are over 1000 of these.


Essentially, I just want to write a tiny script which will, in my browser, click on each one. This will kick off a download of each file. Unfortunately, there is no better way to do this for various reasons - and it is a once off script.


The icons are differentiated like so :



<span class="button"
id="docgrid_row_0_download">
</span>

<span class="button"
id="docgrid_row_1_download">
</span>


Is there any programmatic way of getting my browser to click on each one? Notice the difference between each id.


Aucun commentaire:

Enregistrer un commentaire