继续学习,我回来啦!

Robotium 只有apk测试 通过id获取view

上一篇 / 下一篇  2014-08-28 12:36:22

Activity a  = solo.getCurrentActivity();
int id = a.getResources().getIdentifier("bottom_menu_show_menu_button", "id", a.getPackageName());
final View v = a.findViewById(id);
solo.clickOnView(v);//即点击id为bottom_menu_show_menu_button的view

TAG:

 

评分:0

我来说两句

我的栏目

日历

« 2024-05-06  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 40488
  • 日志数: 17
  • 建立时间: 2014-01-02
  • 更新时间: 2017-07-03

RSS订阅

Open Toolbar