Reputation: 9
please refer the image.
In the image (which is blue color is selected one). I want to click on the imageView. I am not sure how to select a imageView, when multiple linear layout is there.
-Relative Layout:
-(0)Linear Layout
-(0)TabWidget
-(0) LinearLayout
(0)imageView
-(1) LinearLayout
(0)imageView
-(2) LinearLayout
(0)imageView (I want Click this image View).
Upvotes: 0
Views: 644
Reputation: 3720
If there are no ids and the Relative Layout is root layout, you can click on image view with index 2.
solo.clickOnImage(2);
Upvotes: 1