如何使用使用 detox 选择的 Android 日期?

问题描述

我正在尝试测试 react-native-modal-datetime-picker 并为 android 选择一个日期(稍后我将需要 IOS)。 我目前无法选择日期。 我找到了一个使用 espresso(See this) 的 Appium 解决方案,但是这个解决方案使用 findelementByID 来获取使用 detox 不可用的 android 元素 id(detox by.id 从我看到的中获取 android 元素标签而不是 id) . 这就是我如何获得要使用 android studio 测试的元素的 ID:

enter image description here

在使用 detox 时,是否有其他方法可以测试 android 日期选择器?或获取 android 元素 ID 的方法

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)