UIAutomation????iOS?????????
???????????? ???????[ 2013/4/2 12:02:21 ] ????????
???????????????????????????????
var textField =
UIATarget.localTarget().frontMostApp().mainWindow().textFields()[0];
?????????????????0????????????????????????????????????????磺????????????????????????????????
var textField =
UIATarget.localTarget().frontMostApp().mainWindow().textFields()["User Text"];
??????????????????????????????á?????????Interface Builder????UIAElement??name?????
?????????????д?????????
myTextField.accessibilityEnabled = YES;
myTextField.accessibilityLabel = @"User Text";
?????????????????????accessibility????????UIAutomation????????????????????????????????????????????????????????????????д??????????????????????????????????????????????????UIAElement???????????????????????????з????
????buttons()?? images()?? scrollViews()??textFields()?? webViews()?? segmentedControls()?? sliders()?? staticTexts()?? switches()?? tabBar()??tableViews()?? textViews()?? toolbar()?? toolbars() ???……
???????????????′?????tabbar?????????tab??
var tabBar = UIATarget.localTarget().frontMostApp().tabBar();
var tabButton = tabBar.buttons()["First"];
????UIAElement????η?????????????????????????????????????????????????????UIAAplication??logElementTree????????????
UIATarget.localTarget().frontMostApp().logElementTree();
???????????????????????Accessibility ?????????????????????“Settings > General > Accessibility > Accessibility Inspector”??????????“??”????
????????????С?????Accessibility ???????????????????????Accessibility????????????????????Accessibility?????????????????????????????????????Accessibility???????????????????????????????
??????????????????UIAElement??name??value??????????accessibilityLabel??accessibilityValue?????NSObject????????????????????????????????д?????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11