开发者

What is the syntax to delete a cell using the UI Automation instrument?

I am working on a UI Automation script to test a page in my application tha开发者_开发问答t contains many cells.

I have an option to edit and save the page. On clicking "edit" an option will appear to delete a cell. I would like to make my script delete or add a cell at this point. How can I get the script to do this?


With element index :

myCell.switches().[0].tap();
myCell.buttons().[0].tap();

Or with predicate :

myCell.switches().firstWithPredicate("name contains[c] 'Delete'").tap();
myCell.buttons().firstWithPredicate("name contains[c] 'Confirm'").tap();
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜