mardi 29 septembre 2015

Radio button onclick() Jwebunit not working

I am using Jwebunit to test a webapp which contains radio buttons with onclick() javascript function. When I use the function clickRadioOption(radiogroup, radiooption) the onclick function does not get triggered.

Note: my radio button didn't have the value attribute and since the clickRadioOption function takes value as an attribute, i first added the value attribute to my radio button by using IElement.setAttribute(attribute,value) function.

Sample Code:IElement radio = getElementById(buttonid); radio.setAttribute("value",but_value); clickRadioOption(radio_grp,but_value);

Aucun commentaire:

Enregistrer un commentaire