First of all, there could be multiple such buttons I'll need to click in a workflow of a single macro.
Second, I would like to have some sort of a template or a subroutine (that would have press button action along with the contingency steps) that I can use in any macro wherever I want to click a webpage button.
I am using this macro. Where, the instagram reel link is already saved to the variable. If the button click fails and I let the macro cancel, next time i run the same macro, it'll fetch a new instagram reel link from the text file and I'll loose downloading and uploading the previous reel video.
I just want it to try sufficient number of times before the macro gets cancelled. Because the button click may not work first time but it may work the second or third time.