iOS:编写以编程方式运行应用程序 UI 的脚本
我一直在尝试使用 FoneMonkey 框架进行自动化,但它一直存在 UIGestureRecogizer
对象的问题。有一些按钮与这些 UIGestureRecognizer
对象相关联,而这个块使我无法在视图之间切换。因此,我想编写一个简短的脚本,以编程方式触发这些对象,导致应用程序更改视图。
我不确定是否可以将常规代码与 FoneMonkey 命令混合使用,但我们假设它是可行的。我将如何编写一个应用程序/程序/脚本来遍历 iPhone 应用程序的不同视图?不使用 UI 自动化或其他框架是否可行?
I've been trying to use the FoneMonkey framework for automation, but it's been having issues with UIGestureRecogizer
objects. There are buttons tied to those UIGestureRecognizer
objects, and this block is making me unable to switch between views. Thus, I would like to write a short script that programmatically triggers those objects, causing the app to change views.
I'm not sure if it's possible to mix regular code with FoneMonkey commands, but let's assume that it's feasible. How would I go about writing an app/program/script that traverses different views for an iPhone app? Is it even feasible without using UI Automation or some other framework?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果你的手势是标准手势,如俯仰、很快、滑动(左、右、上、下),那么最新版本的 MonkeyTalk 有一些支持,看看下面的网址。
http://www.gorillalogic.com/monkeytalk-documentation/monkeytalk -语言参考/命令参考
if your gestures are standard gestures like pitch, soon, swipe (left, right, top, bottom), then Latest version of the MonkeyTalk has some support, take a look at the following url.
http://www.gorillalogic.com/monkeytalk-documentation/monkeytalk-language-reference/command-reference