Is there any way to convert current automation testing which code with Android XML that migrated to Jetpack Compose?

Hi, I already create a test case for a feature which developed by Android XML which reach id using resource-id, it works. Now the feature is migrated into Jetpack Compose view that cannot provide that id. I there any way to solved it? Thank you

From what I have seen the only way to automate apps that use jetpack compose in a stable way is to use the updated appium espresso driver that has been added to appium 2.0. I haven’t gotten it working within the remote execution of Katalon Studio but it should work.

Alternatively because jetpack compose does not create he xml views I have been able to hack through creating tests that use xpath locators and sibling objects. From what I have seen when appium attempts to create the xml tree it creates multiple selectable objects for the same object but the identifier will be in one object and the intractable object will be a separate sibling object.

1 Like