User Case

In cases where the value of property used to capture control in interface entity (like text, value, label...) is dynamic, you can use regular expressions.

Example:

The value of the name property is dynamic. It will be “Interface Lines” or “Information”, based on which tab is selected.


Solution

Use the alternation “|”


Some common regular expression:

? The question mark indicates there is zero or one of the preceding element

* The asterisk indicates there is zero or more of the preceding element

+ The plus sign indicates there is one or more of the preceding element

. The dot matches any single character

| The alternation is a choice, similar with “or”

[ ] The bracket expression matches a single character that is contained within the brackets


Note:

- To be able to use regular expression in TA, you must put all value in “{ }”

- Wildcard “.*” is also a regular expression