Iphone UIButton onClick事件

Iphone UIButton onClick事件,iphone,uibutton,ios-ui-automation,Iphone,Uibutton,Ios Ui Automation,如何在iPhone的UIAutomation脚本中获取UIButton的onlick事件?对于主窗口中的第一个按钮: UIATarget.localTarget().frontMostApp().mainWindow().buttons()[0].tap(); 另外,请看一下Apple提供的测试脚本运行的所有步骤

如何在iPhone的UIAutomation脚本中获取UIButton的onlick事件?

对于主窗口中的第一个按钮:

 UIATarget.localTarget().frontMostApp().mainWindow().buttons()[0].tap();
另外,请看一下Apple提供的测试脚本运行的所有步骤