Naming Web Objects

Applies to TestComplete 14.30, last modified on November 21, 2019

When testing Web pages, TestComplete works with the elements of web pages as it would with application objects. The way in which TestComplete addresses elements of web pages depends on whether the window is mapped or not (see Name Mapping). If the element is mapped, then TestComplete uses its mapped name or alias. Else, it uses default names.

If the Map object names automatically setting is enabled in the Name Mapping Options dialog, TestComplete automatically maps objects during test recording or at design time, when you add operations to keyword tests or when you create checkpoints. After the object was mapped, TestComplete uses the mapped name to address this object in keyword tests and scripts. However, the default name can also be used.

The default names used for the web pages’ objects depend on the Web Testing | Tree model project setting. It specifies the object model (DOM, Tag, Tree or Hybrid) on the page. The objects’ names in these models are different. For detailed information on how they are formed, see Tree Model. You can see the names, which TestComplete uses to address web page elements, in the Object Browser panel.

See Also

Object Browser Naming Notation
About Object Browser Naming Notation
Tree Model
Name Mapping
Testing Web Applications

Highlight search results