I have dealt with this a lot, and can often be overcome by using relative JavaScript querySelector() commands. If you will post the page URL, or the actual HTML code (using the forum Code Block) we can take a look to see if it is possible.
Also include a screenshot indicating the button you want to click on.