background image
<< Continue recording in Robot | Test dialog box >>
<< Continue recording in Robot | Test dialog box >>
Testing Data in HTML Elements
Testing Data in HTML Elements
13-5
Testing Data in HTML Elements
Use the Object Data verification point to test the data in HTML elements. For
example, you can use this verification point to test whether a purchase order has been
processed or whether a Submit button returns the page that it is supposed to. For
more specific information about verification points, see Chapter 4, Creating
Verification Points in GUI Scripts
.
To test an HTML element's data:
1. Start recording in Robot, as described in Enabling HTML Testing in Robot on page
13-3.
2. Navigate to the Web page that contains the elements to test. For example,
navigate to the page that is returned after the user submits a page to be processed.
3. Click the Object Data Verification Point button on the GUI Insert toolbar.
4. Assign a name, wait state, and expected result for the verification point and then
click OK, as described in Tasks Associated with Creating a Verification Point on page
4-6.
5. In the Select Object dialog box, drag the Object Finder tool over the page until
the element that you want to test appears in the TestTip, as described in Selecting
and Identifying the Object to Test
on page 4-10.
For example, to test for the existence of a particular string of text on a page (any
text within the <
BODY
> and </
BODY
> tags), drag the Object Finder tool over
the page until HTMLDocument appears in the TestTip and in the Selected
Object field. You can see examples of these items in the following figure.