background image
<< To test an HTML element's data | To Test the Contents of a List Box >>
<< To test an HTML element's data | To Test the Contents of a List Box >>

HTMLDocument

Testing HTML Applications
14-6
6. Release the mouse button and click OK.
7. If the Object Data Test dialog box appears, select the data test to use and
click OK.
There are six types of data tests that you can use on HTML elements. Not all
tests are available for each type of element. For example, you might want to
perform a Contents data test on an HTMLDocument. The Contents data test
captures all of the visible text on the page, including text in forms fields such as
list boxes and combo boxes. For information about the types of data tests that are
available for each element, see Supported Data Tests for HTML Testing on page
14-10.
8. Select the verification method that Robot should use to compare the baseline
data captured while recording with the data captured during playback.
For example, use the Find Sub String Case Sensitive verification method to
verify that the text captured during recording exactly matches a subset of the
captured text during playback.
Suppose you want to verify that the text, thank you for shopping with Classics Online,
is returned after a customer submits a purchase order. By selecting the Find Sub
String Case Sensitive verification method, you can ensure that Robot always
tests for the text, thank you for shopping with Classics Online, regardless of the text
that surrounds it.
For more information about verification methods and the Object Data
Verification Point dialog box, see Working with the Data in Data Grids on page
4-19.
NOTE: If you plan to do cross-browser testing, select Filtered Contents.
Filtered Contents captures the data, removes all white space from the
content, and puts all content on one line, which ensures that verification
points will be compatible between Internet Explorer and Netscape.