开发者

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

开发者 https://www.devze.com 2023-04-02 00:36 出处:网络
I am working on a UI Automation script to test a page in my application tha开发者_开发问答t contains many cells.

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

精彩评论

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