如何使用猴子跑步者选择按钮?
我有一个应用程序(.apk)。
我给你一波流量。当您点击应用程序(这是我的第一个活动)时,将显示屏幕 1。
屏幕 1:演示(立即注册)
屏幕 2:注册个人详细信息(提交时)
等等......,
我将使用 device.startActivity('package/.demo') 启动应用程序。
在演示页面上,我需要单击立即注册按钮。有什么方法可以通过标签名称选择按钮吗?
问候, 钱德拉
I am having an application (.apk).
I'll give you one flow. When you tap the app (that is my firstactivity) screen 1 will display.
Screen 1: Demo (on registernow)
Screen 2: Register personal details (onsubmit)
etc....,
I am going to launch the app using device.startActivity('package/.demo').
On the demo page, i need to click registernow button. Is there any way to select the button by lable name?
REgards,
Chandra
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,无法通过标签名称选择按钮。我也是 Monkeyrunner 的新手,但这是我在网上读到的第一个缺点之一。显然只能通过按钮的坐标来选择按钮。也许其他人可以确认?
As far as I know there is no way of selecting buttons via label name. I'm new to Monkeyrunner as well but that was one of the first disadvantages I read on the web. Appearantly it is only possible to select a button via its coordinates. Maybe someone else can confirm?
似乎没有内置方式,因此存在第三方库:https://github。 com/dtmilano/AndroidViewClient
There doesn't appear to be a built-in way, hence a third-party library exists: https://github.com/dtmilano/AndroidViewClient