How can I make Robotium click on a particular link in a page?
Asked
Active
Viewed 1,064 times
6
-
We don't know what you're talking about. Can you edit your question to include more details about what exactly you're trying to do? What is robotium? – Cody Gray - on strike Mar 28 '11 at 07:36
-
[Robotium](http://code.google.com/p/robotium/) is a Selenium-like testing framework for Android. – Miikka Mar 28 '11 at 19:19
6 Answers
7
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.

Henrique Rocha
- 1,737
- 1
- 19
- 29
2
I recommended you to install TestDroid eclipse plugin, it seems like Selenium IDE but for Robotium, obviously

Toon Krijthe
- 52,876
- 38
- 145
- 202

discostu
- 291
- 1
- 5
- 15
2
You can use solo.clickOnText() as you purpose is only to click on the link which will be solved by this.
I have fixed so many issues of mine by solo.clickOnText()
Thanks

user1664899
- 327
- 2
- 4
- 15
2
In robotium we have the below function to click on the particular text solo.clickOnText(String str);
example: String str="www.google.com"; solo.clickOnText(str);

hari_nars1
- 49
- 3
1
You can use clickOnHtmlElement method provided by Testdroid in library, which extends robotium-solo.

maszter
- 3,680
- 6
- 37
- 53