![]() TestComplete performs the search in the cached copy of the object hierarchy, which may not correspond to the actual hierarchy of objects in the tested application. To search for an exact match, use the ^ and $ anchors, for example "regexp:^notepad$".įor detailed information on regular expression syntax, see Regular Expressions Syntax. For example, regexp:notepad matches both "notepad" and "notepad++". For example, "regexp:gry" will match both "gray" and "GRAY". Use standard TestComplete (non-native) syntax to specify regular expressions.Īll patterns are case-insensitive. The property does not support native regular expression syntax, that is, the syntax provided by scripting languages. ![]() To specify more complicated sought-for patterns for property values, use regular expressions, in the following format: regexp. The question mark (?) wildcard corresponds to any single character (including none). The asterisk (*) wildcard corresponds to a string of any length (including an empty string). ![]() Values can contain wildcards or regular expressions: A value of a single property or an array of values of properties that the PropNames parameter specifies. ![]()
0 Comments
Leave a Reply. |