Click on a link,multiple times in a browser

Hi, I am trying to automate clicking “Withdraw” request in LinkedIn , as shown below.
I am not able to automate this by recording the steps and putting a do while loop.

Can anyone help to achieve this?

Use dynamic selectors , it will work .
Pass variable for the value which will be changing in your selector .
And increament it by one and than use while loop.