Hi Team,
We are working on an Android app built with Jetpack Compose, and we want to identify elements using testTag so that they can be inspected and automated with Katalon Studio Mobile Spy.
Our developer has tried the following approaches:
- Using semantics with
testTag:
Text(
text = "Product Details",
color = AppColors.colorTextInputError,
style = MaterialTheme.typography.bodySmall,
modifier = Modifier.semantics {
testTag = "tvTitle"
contentDescription = "Product details"
},
)
- Using the
testTagmethod directly:
Text(
text = "Product Details",
color = AppColors.colorTextInputError,
style = MaterialTheme.typography.bodySmall,
modifier = Modifier.testTag("tvTitle"),
)
- Using
layoutIdwithtestTag:
Text(
text = "Product Details",
color = AppColors.colorTextInputError,
style = MaterialTheme.typography.bodySmall,
modifier = Modifier.layoutId("tvTitleLayoutId").testTag("tvTitle"),
)
However, in all cases, Katalon Mobile Spy is not able to detect or show these elements with testTag.
Instead, only generic or parent container nodes are visible, making it very hard to locate elements for automation.
Question:
-
Does Katalon Mobile Spy support inspecting
testTagattributes from Jetpack Compose? -
If not, is there any workaround (e.g., mapping
testTagto accessibilityId, contentDescription, or resource-id) so that Katalon can recognize the elements? -
Has anyone successfully integrated Katalon with Jetpack Compose apps for element inspection and test automation?
Any guidance or workaround would be greatly appreciated ![]()