RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

When fragment change,robotium can not get the right item. #770

Closed renas closed 9 years ago

renas commented 9 years ago

From yangchen...@163.com on July 03, 2015 04:41:58

What steps will reproduce the problem? 1.first fragment use solo.findViewById("aaa"),this view is a ImageView.I get the right View. 2.click one item,then the app switch to another fragment. 3.in second fragment i use solo.findViewById("aaa"),but i get the wrong view belong to the first step. What is the expected output? What do you see instead? In step3 i want get the view belong to the second fragment. But now,i get the view belong to the first fragment. How can i slove the problem? Thanks~ What version of the product are you using? On what operating system? ROBOTIUM 5.1/ANDROID STUDIO 1.2 Please provide any additional information below.

Original issue: http://code.google.com/p/robotium/issues/detail?id=691

renas commented 9 years ago

From renasr...@gmail.com on July 08, 2015 21:49:32

Please use getView()

Status: Invalid
Owner: renasr...@gmail.com