开发者

Instruments:UI Automation:iPhone app - how to tap "null" button using parameters of NSRect?

开发者 https://www.devze.com 2023-03-22 08:11 出处:网络
please help me. There is a button: 4) UIAButton [name:(null) value:(null) NSRect: {{25, 254}, {70, 72}}]

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消