Re: [robotium-developers] Robotium 4.0 web radio element selecting value

183 views
Skip to first unread message

Renas

unread,
Mar 28, 2013, 9:22:55 AM3/28/13
to robotium-...@googlegroups.com
Hi,

It sounds like you want to do this: solo.clickOnWebElement(By.textContent("NO"));

/Renas

On Thu, Mar 28, 2013 at 1:00 PM, Alan To <ala...@gmail.com> wrote:
I am loving the new web support for Robotium.

I am trying to check the default value of a web radio button

<input type="radio" checked="checked" name="radioyesno" value="YES" class="radio">

And set the value to "NO"

I can't see any support for setting radio buttons to either True/False | YES/NO

Which solo method should I be using?

I have tried to use the solo.clickOnWebElement(By.name("radioyesno"), "NO");

but that doesn't work..

Any help would be great


Thanks

--
You received this message because you are subscribed to the Google Groups "Robotium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotium-develo...@googlegroups.com.
To post to this group, send email to robotium-...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotium-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Renas

unread,
Mar 28, 2013, 9:29:19 AM3/28/13
to robotium-...@googlegroups.com
You can find out which elements that are displayed by:

for(WebElement webElement : solo.getCurrentWebElements()){

    Log.d("Robotium", " id: " + webElement.getId() + " text: " + webElement.getText() + " name: " + webElement.getName() + " classname: " + webElement.getClassName() + " tag: " + webElement.getTagName());

}


/Renas

Reply all
Reply to author
Forward
0 new messages