javascript - UIAutomation, UITableView inside UITableViewCell -
i have horribly coded set of controllers unable refactor @ time. need bring them under automated testing, have run issue uiautomation tool.
these controllers dynamically generated. there many ways decided best if made tableview containing cells each contain more tableviews, containing cells user see , interact with.
a simple example of 1 of these controllers follows:
i need press 1 of table view cells automagically.
after struggling view hierarchy issues, managed logelementtree see of cells, correct accessibility identifiers. here result:
now test can press 1 of buttons script...
nope. can't seem drill down elements though logtree shows exist , visible.
any ideas welcome. i'm not experienced javascript missing obvious. thanks!
to answer own question , helpful engineer @ wwdc:
target.frontmostapp().mainwindow().tableviews()[0].cells()[0].tableviews()[0].cells()["open"].tap();
Comments
Post a Comment