background image
<< Using the Start Browser Toolbar Button | HTMLDocument >>
<< Using the Start Browser Toolbar Button | HTMLDocument >>

To test an HTML element's data

Testing Data in HTML Elements
14-5
To test an HTML element's data:
1. Start recording in Robot, as described in Using the Start Browser Toolbar Button on
page 14-4.
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.
For a list of the HTML elements that you can test, see How Robot Maps HTML
Elements
on page 14-8.
HTMLDocument
TestTip
Object Finder tool