I have a webpage that has 10 buttons to download a specific type of data to csv. 
However, I have to click every button to get all the files I need.

I am trying to build a script to download all the files but I am struggeling because all buttons are defined as this:

```
<a class="small" ng-click="aggTable.exportAsCsv(true)">
      Formatted <i aria-hidden="true" class="fa fa-download"></i>
    </a>

```

I was thinking about getting all elements with the class "small" and iterate through them with a for cycle but there are n elements with that class and I don't know how to click the ng-click. 

Can you help me?

Thank you.