仪器:UI 自动化:iPhone 应用程序 - 如何点击“null”按钮使用 NSRect 的参数?
请帮我。 有一个按钮:
4) UIAButton [name:(null) value:(null) NSRect: {{25, 254}, {70, 72}}]
我可以点击它: target.tap(x,y) 或 window.buttons()[index].tap();
但是,是否可以使用参数 NSRect 作为按钮的 id 来点击按钮?
提前致谢。
please help me.
There is a button:
4) UIAButton [name:(null) value:(null) NSRect: {{25, 254}, {70, 72}}]
I can tap it :
target.tap(x,y) or window.buttons()[index].tap();
But, is it possible to tap button using parameters NSRect as id of button?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
按钮可以通过使用其名称作为参数来直接点击,但在本例中名称为空,您可以通过提供从 0 开始的 id 来点击它,并像数组一样最多显示屏幕上出现的按钮数。此处不能使用
NSRect
。button can be tapped directly by using its name as a parameter but as in this case name is null, you can tap on it by giving id starting from 0 and goes on up-to number of buttons present on screen just like an array.
NSRect
can't be used here.