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.
Use Attach Window on the Export Results Window : Make Sure the Selector of the Atttach Window is Dynamic if there are varying names.
Use On Element Appear Activity inside the Attach Window.
Then use Click Activity on Close Button inside the On Element Appear Activity.
The Selectors for the On Element Appear and the Click is the same.
But Also add the name property into the Selector.
Thanks for the assistance, I try to differentiate between cancel and close by re-indicate the close button. I indicate the button-text instead of the button or button block. So, I have a clear selectors of the close button.