iphone - 在 Instruments 中记录 UIAutomation 事件 : get numeric instead of string value

标签 iphone ios instruments ui-automation ios-ui-automation

在 Instruments 的自动化事件编辑器中捕获事件时(使用整洁的记录按钮点击编辑器),我经常得到这样的响应:

target.frontMostApp().mainWindow().buttons()["Filter"].tap();

捕获后,我可以选择将捕获的事件可视化地设置为等效代码。

enter image description here

问题:有没有办法将捕获的事件默认设置为通用/数字值而不是字符串值?我知道我可以手动更改它们中的每一个,但通常我想要

target.frontMostApp().mainWindow().buttons()[2].tap();

值,而不是这样

target.frontMostApp().mainWindow().buttons()["Filter"].tap();

提前致谢

最佳答案

我问过苹果的技术支持,在Instruments中还没有这种可能性。

关于iphone - 在 Instruments 中记录 UIAutomation 事件 : get numeric instead of string value,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9634397/

相关文章:

ios - 是否有任何工具可以跟踪 iOS 上特定文件的页面错误和其他相关事件?

ios - Twitter API 问题 .“Authentication needed” “无法验证 oauth 签名和 token ”

ios - 按姓氏分组的 Core Data 家族成员

iphone - 保存在 NSDocumentDirectory 中可以吗?

ios - 如何在 UITableView 的选定单元格行中设置图像

iphone - ***断言失败-[Scrapboom.iPhone.NewsFeedTableView _endCellAnimationsWithContext :],/SourceCache/UIKit/UIKit-2903.2/UITableView.m:1076

xcode 3.2.5 使用性能工具运行 -> 禁用僵尸选项

ios - 如何在 Instruments Time Profiler 中显示调用函数的次数

iphone - 使用 DatePicker 对日期和时间进行一些限制

iphone - -[__NSArrayM insertObject :atIndex:]: object cannot be nil