如何使用Espresso / UI Automator测试Google Maps信息窗口内容?
如何使用Espresso或UI Automator测试Google Map Marker的信息窗口内容,用于自动化测试。
我使用这样的UI-Automator单击地图的标记...
val device = UiDevice.getInstance(getInstrumentation())
val marker = device.findObject(UiSelector().descriptionContains(markerTitle))
if (marker.exists()) {
marker.click()
}
我尝试使用浓缩咖啡和UI-Automator检查信息窗口内容,但不幸的是它们无法正常工作。还有其他方法可以测试。
谢谢!
How to test Google map marker's info window contents for automation testing using Espresso or UI Automator.
I click on the map's marker using ui-automator like this...
val device = UiDevice.getInstance(getInstrumentation())
val marker = device.findObject(UiSelector().descriptionContains(markerTitle))
if (marker.exists()) {
marker.click()
}
i tried checking the info window contents with both espresso and UI-automator but unfortunately they are not working. is there any other way to test this.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论