Below are some tips on selecting properties to be checked by using property checkpoints:
To verify the window caption (title), use the
To verify text in an edit control, use the
To verify the value of a control with a range of values, such as a spin box or a slider, use the
To verify the selected date or time in a date-time edit control, use the
wTime property, respectively.
|Note:||If the mentioned
However, in .NET, WPF, Silverlight and Java applications, native properties of the string data type may be incompatible with the string data type used in TestComplete. In this case, checkpoints for these native properties will always fail.
To verify the text of web page elements, use the
contentText property, which returns the combined text of a web page element and its child elements. The
contentText property is cross-browser, that is, it is available in all the supported web browsers.
It is not recommended to use the native
textContent properties in checkpoints, because they are not cross-browser. See also Handling Browser Differences.
When creating a property checkpoint for a web element’s attribute, activate the More Properties mode in the Property Checkpoint wizard to view the available attributes.
|Note:||The Property Checkpoint wizard does not display custom attributes of web elements. If you need to create a checkpoint for a custom attribute, select any other attribute or property in the wizard and then modify the created checkpoint to use the needed attribute.|