O'Reilly logo

TestComplete Cookbook by Gennadiy Alpaev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using wildcards to process objects with variable names

The majority of the controls elements have unchanging headers, texts, and so on (that is, properties by which TestComplete makes a difference). In some cases, these properties are dynamic, that means, they change depending on their conditions. For example, heading of the Notepad application starts with the name of the open file (or the word Untitled for a newly created file). Some URLs contain dynamic parts in parameters (for example, session identifier, which is not liable to change, but to be generated randomly). In such cases we apply symbols of the batch replacement (that is, the wildcards).

Getting ready...

Create the file myfile.txt in the root directory of the disk C:\ with any contents. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required