android - 有什么方法可以使用 Detox 在 Android 上的 Picker 中选择一个项目?
问题描述
根据文档,选择值的方法仅适用于 IOS。Android 有什么建议的解决方法吗?
解决方案
await waitFor(element(by.id('android_touchable_wrapper'))).toBeVisible()
await element(by.id('android_picker_headless').withAncestor(by.id('android_touchable_wrapper'))).atIndex(0).tap()
await element(by.text('Picker Value Dropdown 1')).tap()
推荐阅读
- hybris - 如何从 Hybris 中的 URL 中删除基础站点 id/上下文根
- java - Java 性能:私有静态最终字符串与本地字符串?在堆空间中创建的对象数
- xamarin - Xamarin 标签在 Mvvm listview 中初始后未更新
- r - 将M5与caret包的train函数一起使用时如何提取线性模型回归系数?
- javascript - Iphone 中的图像旋转问题(croppie)
- javascript - 如何使用可排序的 jquery-ui 功能同时从两个表中拖放行进行排序?
- orchardcms - 重新初始化 Orchard Core 数据库
- python - SeleniumLib 扩展引发重复的关键字名称错误
- python - 如何使用条件覆盖方法
- html - 我有一个示例 GoJS 的代码,由于某种原因无法正常工作,加载页面时显示为空