| 33) How WinRunner handles varying window labels? [/b]OR 34) What is the purpose of regexp_label property and regexp_MSW_class
property?[/b] [/b]
a. We can handle varying window labels using regular expressions. [/b]WinRunner uses two “hidden” properties
in order to use regular expression in an object’s physical description. These
properties are regexp_label[/b] and regexp_MSW_class[/b].
i. The regexp_label[/b]
property is used for windows only. It operates “behind the scenes” to insert a
regular expression into a window’s label description.
ii.
The regexp_MSW_class[/b] property
inserts a regular expression into an object’s MSW_class[/b]. It is obligatory for all types of windows and for the
object class object. |