act262 / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by yangchen...@163.com on 3 Jul 2015 at 11:41

GoogleCodeExporter commented 9 years ago
Please use getView()

Original comment by renasr...@gmail.com on 9 Jul 2015 at 4:49