问题
I'm using detox but I need to handle my native login page using detox.
回答1:
Detox supports native elements. In order to interact with them, you need to set an accessibilityIdentifier to the elements you want to interact with, and then the normal by.id()
API will work as expected.
来源:https://stackoverflow.com/questions/59714311/how-to-handle-pure-native-elements-using-detox