-
Book Overview & Buying
-
Table Of Contents
Advanced UFT 12 for Test Engineers Cookbook
The Description object is one of UFT's reserved objects, like the Environment and Reporter object. Basically, the Description object resembles a dictionary object with key-value pairs, which defines the properties and values by which the target TO or objects (see the Using child objects recipe), should be identified. Similar to the OR feature, the Description object also allows for regular expressions as property values. The following table shows regular expression samples of character property values:
|
User |
To match character |
|---|---|
|
|
This represents a word character |
|
|
This represents a nonword character |
|
|
This represents a decimal digit |
|
|
This represents a nondecimal digit |
|
|
This represents a whitespace character |
|
|
This represents a nonwhitespace character |
The Description object comes in handy in situations where the runtime object is dynamically built by the application, or when more complex criteria need to be applied to ascertain the...
Change the font size
Change margin width
Change background colour