About Regular Expressions - WinRunner

Regular expressions enable WinRunner to identify objects with varying names or titles. You can use regular expressions in TSL statements or in object descriptions in the GUI map. For example, you can define a regular expression in the physical description of a push button so that WinRunner can locate the push button if its label changes.

A regular expression is a string that specifies a complex search phrase. In most cases the string is receded by an exclamation point (!). (In descriptions or arguments of functions where a string is expected, such as the match function, the exclamation point is not required.) By using special characters such as a period (.), asterisk (*), caret (^), and brackets ([ ]), you define the conditions of the search. For example, the string “!windo.*” matches both “window” and “windows”. See “Regular Expression Syntax” for more information.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WinRunner Topics