摘要: 半年记录过博客,那时候还是3.6版本,robotium通过控件ID点击view需要这么多代码: 1 private int clickCtrlById(String s, int t ){ 2 56 int ctrl; 3 57 View v; 4 58 5 59 if( s == ""){ 6 60 return -1; 7 61 } 8 62 ctrl = solo.getCurrentActivity().getResources().getIdentifier(s, "id", TARGET_PACKAGE_ID); 9 63 10 64 v = 阅读全文
posted @ 2013-08-07 23:00 VincentVan 阅读(220) 评论(0) 推荐(0) 编辑