background image
<< Controlling How Robot Responds to Unknown Objects | Selecting an Object Order Preference >>
<< Controlling How Robot Responds to Unknown Objects | Selecting an Object Order Preference >>
GUI Recording Options
Recording GUI Scripts
2-8
During recording, you might click an object that Robot does not recognize. In this
case, Robot's behavior is controlled by a recording option that you set. You can have
Robot either:
þ
Open the Define Object dialog box, so that you can map the object to a known
object type.
Mapping an object to an object type permanently associates the class name of the
object's window with that object type, so that other objects of that type will be
recognized. For more information, see Defining Unknown Objects During
Recording
on page 2-20.
þ
Automatically map unknown objects encountered while recording with the
Generic object type. This permanently associates the class name of the
unknown object's window with the Generic object type.
This is a useful setting if you are testing an application that was written in an IDE
for which Robot does not have special support and which therefore might
contain many unknown objects. When an object is mapped to the Generic object
type, Robot can test a basic set of its properties, but it cannot test the special
properties associated with a specific object type. Robot also records the object's
x,y coordinates instead of using the more reliable object recognition methods to
identify the object. (For information about the recognition methods, see the
following section, Selecting an Object Order Preference.)
These custom object mappings are stored in the project that was active when the
mappings were created.
To control how Robot behaves when it encounters an unknown object during
recording:
1. Open the GUI Record Options dialog box. (See Setting GUI Recording Options
on page 2-5.)
2. In the General tab, do one of the following:
­
Select Define unknown objects as type "Generic" to have Robot
automatically associate unknown objects encountered while recording with
the Generic object type.
­
Clear Define unknown objects as type "Generic" to have Robot suspend
recording and open the Define Object dialog box if it encounters an
unknown object during recording. Use this dialog box to associate the
object with an object type.
3. Click OK or change other options.