1. A method, in a data processing system comprising at least one processor and at least one memory, the at least one memory comprising instructions executed by the at least one processor to cause the at least one processor to implement a user interface automation tool, the method comprising: executing, by the user interface automation tool, a script to perform automation functions on user interface controls in a user interface of an application; responsive to automation of a given user interface control failing, identifying, by the user interface automation tool, a candidate user interface control that is the same as a user interface control expected in the script using a machine learning model, wherein the machine learning model receives as input object properties of the given user interface control in the script, object properties of user interface objects in the user interface, code changes from a source control system, how many changes per day, number of defects, and a version of the application; correcting, by the user interface automation tool, the script to refer to the candidate user interface control to form a corrected script; and performing, by the user interface automation tool, a user interface function on the candidate user interface control according the corrected script.
1. A method, in a data processing system comprising at least one processor and at least one memory, the at least one memory comprising instructions executed by the at least one processor to cause the at least one processor to implement a user interface automation tool, the method comprising: executing, by the user interface automation tool, a script to perform automation functions on user interface controls in a user interface of an application; responsive to automation of a given user interface control failing, identifying, by the user interface automation tool, a candidate user interface control that is the same as a user interface control expected in the script using a machine learning model, wherein the machine learning model receives as input object properties of the given user interface control in the script, object properties of user interface objects in the user interface, code changes from a source control system, how many changes per day, number of defects, and a version of the application; correcting, by the user interface automation tool, the script to refer to the candidate user interface control to form a corrected script; and performing, by the user interface automation tool, a user interface function on the candidate user interface control according the corrected script. 2. The method of claim 1 , further comprising: monitoring corrections to one or more user interface automation scripts; recording the corrections to the one or more user interface automation scripts in a corrections data structure; and training the machine learning model using the recorded corrections in the corrections data structure as training data.