Click on the link in the robotium

How can I get Robotium to click on a specific link on a page?

+6
robotium
source share
6 answers

You should try clicking 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"); 

He works for me. It should also work for you.

+7
source share

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

+3
source share

You will get a solution using

solo.clickOnText (URL);

+3
source share

You can use solo.clickOnText () since you only need to click the link that will be solved by this.

I fixed so many of my solo problems .clickOnText ()

thanks

+2
source share

In robotium, we have a function below to click on a specific text solo.clickOnText (String str);

Example: String str = "www.google.com"; solo.clickOnText (str);

+2
source share

You can use the clickOnHtmlElement method provided by Testdroid in the library, which extends solo robotism.

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

+1
source share

All Articles