In addition to setting the standard GUI recording options, you can take some
additional steps to refine your testing. You can:
Customize the order of the object recognition methods to make the script more
readable and stable.
Map object types and classes to identify custom objects during record and
Customizing the Object Recognition Method Order
As explained in the previous section, Robot has two predefined preferences for the
recognition method order for each standard object type: and C++
Recognition Order. When you record an action on an object, Robot tries each
method within the selected preference in sequence until it finds one that uniquely
identifies the object.
You can redefine the order in which Robot tries recognition methods for each object
type. This order has an effect on both the readability and stability of script
commands. For example, when you read script files, it is easier to locate a command
on a specific object if that command uses the object name or label for identification.
However, if the object name or label is likely to change between builds, another
recognition method may provide more stability.
You should evaluate your own development and testing environment before you
change the default order of object recognition methods.