Click on Link in robotium
Asked Answered
E

6

6

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

Excoriate answered 28/3, 2011 at 7:26 Comment(2)
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?Willetta
Robotium is a Selenium-like testing framework for Android.Aristides
B
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.

Boroughenglish answered 12/9, 2011 at 10:58 Comment(0)
W
3

You will get solution by using

solo.clickOnText(url);

Welker answered 23/10, 2013 at 16:36 Comment(0)
D
2

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

Dermatophyte answered 9/10, 2012 at 15:35 Comment(0)
V
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

Virtuoso answered 7/12, 2012 at 11:4 Comment(0)
V
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);

Verdie answered 25/4, 2013 at 17:24 Comment(0)
A
1

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

http://docs.testdroid.com/_pages/extsolo.html

Arise answered 19/11, 2012 at 20:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.