You should investigate html attributes of this button, for example with Actions Designer, and find out which attribute value changes when the button is enabled or disabled. Then check this value in a loop during your project, when the value changes - make a click.