johnsski
7 months agoOccasional Contributor
How to use wildcards for a WPFControlText property checkpoint?
I searched for Testcomplete wildcards & found '?' & '*' so I used
' aqObject.CheckProperty(Aliases.simcyp.SimulationStatus.Status, "WPFControlText", cmpStartsWith, "*complete."); '
to have the checkpoint pass when the WPF Control Text = 'Simulation complete.' or 'Outputting complete.'
It fails so is it that the 'CheckProperty' action doesn't support wildcards or something else is wrong?
Thanks,
John
Refer to aqObject.CheckProperty method and see the third parameter named Condition.
TestComplete allows you to use wildcards when specifying:
- Text to be found and replaced in script units.
- Variable parts in window captions and class names.
- Search masks for the Find, FindChild and FindID methods.
- The URLs of dynamic web pages (see Ignoring Query String Parameters).
- The values of a mapped object’s identification properties.