I receive in my function the name and the status (value) and with that i want to set one of the radio button.
I’m trying do do something like this but is not accepting
r = $browser.input(:name => number).parent.radio :value => status
r.set
the html of the radio buttons is this
<input id="1" type="radio" checked="checked" value="activo" name="b1" onclick="oncheckRadio();" tabindex="7">
<input id="1" type="radio" value="inactivo" name="b1" onclick="oncheckRadio();" tabindex="8">
I’m not entirely following the business logic of this, but here’s some abductive reasoning for you (a guess)
However, both radio buttons are named “b1” so setting by name seems a little redundant. I presume you meant the name and status of the radio button.