How to Specify Or in Regular Expression
I am trying to use "|" (Or) in regular expression in Caption property of an window. I need to match windows with caption "abc" or "xyz". So I am trying it as "(abc|xyz)". But it doesn't identify the window with this value. Can someone tell me whats wrong in the above regular expression.
Does TestPartner supports regular expressions for property values of objects in Object Map? I know it supports "*" but how about "|".
Re: How to Specify Or in Regular Expression
The help file is pretty sparce, but it looks like you are limited.
[ QUOTE ]
TestPartner supports the use of a wildcard characters - an asterisk ( *) or question mark (?) - to account for any variability that may occur in an object map property or raw attach name of a control or window. You can use an asterisk as a substitute for zero or more characters or a question mark as a substitute for a single character. For example, for the following raw attach name:
[/ QUOTE ]