How can I get Robotium to click on a specific link on a page?
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.
I recommended you install the TestDroid eclipse plugin, it seems Selenium IDE, but for Robotium, obviously
You will get a solution using
solo.clickOnText (URL);
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
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);
You can use the clickOnHtmlElement method provided by Testdroid in the library, which extends solo robotism.
http://docs.testdroid.com/_pages/extsolo.html