Hi,
Tell to devs to add some tag fore every employee's name TextView,
use solo.getCurrentTextViews(), iterate through them, and if some of
them has tv.getTag().toString().equals("name") -> solo.clickOnView(tv);
sleep;
Best regards,
Yahor
On Thu, Aug 11, 2011 at 8:34 PM, garry <grv
...@gmail.com> wrote:
> Use solo.clickOnText("employee_name")
> On Aug 11, 10:03 am, Shivang Seth <shiv...@rideinsync.com> wrote:
> > Hi I have a ListView object used to display the name of employees in
> > my application. On clicking on an employee name app launches another
> > activity. The ListView contains TextView objects corresponding to
> > each employee. I want to click on each employee's name in the
> > ListView . How could I do it? I don't want such a case to happen that
> > I have to necessarily click on the name of first employee shown. Or
> > if I am sounding vague could anyone tell me how to click on the Name
> > of employees displayed in my application at any random index. Ex for
> > 10 employees I want to start by clicking on 4th employee(4th is not
> > fixed...it can well be 6) then the one at 8th position then 2nd and
> > so on.
> --
> You received this message because you are subscribed to the Google Groups
> "Robotium Developers" group.
> To post to this group, send email to robotium-developers@googlegroups.com.
> To unsubscribe from this group, send email to
> robotium-developers+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/robotium-developers?hl=en.