ViewID Property (Android Objects)

Applies to TestComplete 15.70, last modified on December 17, 2024
This property is available in legacy mobile tests that work with devices connected to the local computer. To learn how to simulate user actions in newer cloud-compatible mobile tests, see the Simulating user actions in tests section.

Description

The ViewID property returns the object’s identifier as it is specified in the application code. The identifier is used to name test objects.

Declaration

TestObj.ViewID

Read-Only Property String
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

All Android objects

View Mode

This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Property Value

A string that contains the object’s identifier.

Remarks

If the object’s identifier is not specified in the application code, the ViewID property returns the NO_ID value.

See Also

Testing Android Applications (Legacy)
Addressing Objects in Android Open Applications (Legacy)
ObjectType Property (Mobile Objects)

Highlight search results