Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Click on Link in robotium

Tags:

robotium

How can I make Robotium click on a particular link in a page?

like image 341
user608211 Avatar asked Mar 28 '11 07:03

user608211


2 Answers

You should try clicking the the anchor text in the link. For example, if the link says www.google.com you can do this:

this.solo.clickOnText("www.google.com");

It is working for me. It should work for you too.

like image 169
Henrique Rocha Avatar answered Sep 30 '22 13:09

Henrique Rocha


I recommended you to install TestDroid eclipse plugin, it seems like Selenium IDE but for Robotium, obviously

like image 23
discostu Avatar answered Sep 30 '22 12:09

discostu