Automate tasks on Safari using Auto Clicker for Safari extension.
Enable the extension from Settings. Open any web page on Safari and set a target to the area you want to configure automated click and let it to do the work for you!
It is easy to use and offers configurations such as time limit for repeating actions such as clicking to the button for every 5 seconds.