I want to click a button if the button name changed. In this case, I have a form and one button inside. When the form is load, it started a process of exporting files. While the process is running, the button name is Cancel and when the process is done, the button name changed to Close. How can I click the button when the button name changed to Close? It always hit cancel every time the form is loading and stop the process. Kindly please provide me the solution for this case. Thanks in Advance.