Maybe not a real bug in terms of the code, but its definitely a bug in terms of usability. If you disable a button from it’s parameters, and then try to click on it with op(‘abc’).click() it will give you a td.error, which then stops the rest of your script from executing. A softer error or possible just having the button ignore the click would be better.