Preparing for This Lesson

Before you extend UFT One support for a custom control, you must have access to its source file. You do not need to modify any of the custom control's sources to support it in UFT One, but you do need to be familiar with them. For example, make sure you know what elements and attributes comprise the control, and what events may occur on this control. You use this information when you design the support.

The source file for the UsedBooks control is located in %ALLUSERSPROFILE%\Documents\ExtAccTool\Samples\WebExtSample\Application\UsedBooks.htm.

To run the sample application, open the %ALLUSERSPROFILE%\Documents\ExtAccTool\Samples\WebExtSample\Application\Book.htm file. The Book control opens. In the Book control, click Used to run the UsedBooks control.

Run the control, open its source file, and study the control's behavior and implementation.

The UsedBooks control is implemented as a div element that comprises a Web table containing information about the available used copies of this book and radio buttons, and a Select link (outside the table element) used to select a book from the list. Selecting a book and opening the page about the selected book (which is not implemented in this sample) requires selecting the radio button in the relevant row in the table and then clicking Select.