简体   繁体   中英

UIAutomation UIButton onClick event

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

For the first button in your main window:

 UIATarget.localTarget().frontMostApp().mainWindow().buttons()[0].tap();

Also have a look at this document by Apple for all the steps to your test script running.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM