|Information in this topic applies to web applications.|
The Open Applications > Web Testing > Custom Attributes option specifies custom attributes of web elements that TestComplete will use as name mapping criteria if web elements cannot be uniquely identified by default predefined properties (
value, etc). This approach is helpful for testing modern web applications (for instance, applications created with the React and AngularJS frameworks.). Such applications often don't use standard attributes for object identification; instead they use for this purpose custom attributes (
Select Tools > Current Project Properties from the TestComplete menu.
– or –
Double-click the project in the Project Explorer. In the project editor that opens, select the Properties tab.
– or –
From the context menu of the project in the Project Explorer, select Edit > Properties.
In the tree on the left of the project properties editor, select Open Applications > Web Testing > Custom Attributes.
By default, the list includes two attributes:
Click Add From Screen and specify attributes for an object chosen on the screen via the Add Web Element Attributes dialog.
– or –
Click Add and input the needed attribute name manually.
Delete attributes: Click Remove to delete the selected attribute.
You can temporarily disable added attributes by clearing the appropriate check boxes of attributes.
The default values for the web custom attributes option that will be used in new TestComplete projects are specified in the Default Project Properties - Custom Attributes Option dialog.