background image
<< Defining Unknown Objects During Recording | Ending the Recording of a GUI Script >>
<< Defining Unknown Objects During Recording | Ending the Recording of a GUI Script >>

Switching to Low-Level Recording

Recording a New GUI Script
2. Click OK to continue recording.
Robot stores the mapping between the window class name and the object type
in the project in case the same object type is captured again.
Important Notes
If you want Robot to automatically define unknown objects as Generic during
recording, click Tools > GUI Record Options, click the General tab, and select
Define unknown objects as type "Generic." (For more information, see
Controlling How Robot Responds to Unknown Objects on page 2-7.)
If you know in advance that the application-under-test contains an object that
Robot does not recognize, you can map the class name of the object's window
to a standard object type before recording. Robot saves this custom class/
object-type mapping in the project and uses it to identify the custom object
during playback. (For more information, see Mapping Object Types and Classes
Before Recording
on page 2-13.)
Switching to Low-Level Recording
Robot has two recording modes:
Object-Oriented Recording mode Examines objects in the
application-under-test at the Windows layer during recording and playback.
Robot uses internal object names to identify objects, instead of using mouse
movements or absolute screen coordinates. If objects in your application's
graphical user interface (GUI) change locations, your tests still pass because the
scripts are not location dependent. As a result, Object-Oriented Recording
insulates the GUI script from minor user interface changes and simplifies GUI
script maintenance.
Low-level recording mode Tracks detailed mouse movements and keyboard
actions by screen coordinates and exact timing. Use low-level recording when
you are testing functionality that requires the tracking of detailed mouse actions,
such as in painting, drawing, or CAD applications.
To switch between the two modes during recording, do one of the following:
Click the Open Robot Window button on the GUI Record toolbar (or press
) to bring Robot to the foreground. Click Record > Turn
Low-Level Recording On/Off.
NOTE: To redefine hot keys, click Tools > GUI Record Options, click the
Robot Window tab, and type the letter for the hot key.