How do I radio button?

1,106 views
Skip to first unread message

Xillok

unread,
Jan 27, 2012, 5:59:15 PM1/27/12
to Behat
Hi everyone. I'm pretty new to Behat/Mink/Gherkin, so pardon me if
this is silly, but I don't see how to interact with radio buttons
through Mink. I see steps for check boxes and list selections, but no
radio button choices. I've tried using both the check box and list
selection steps for radio buttons but they don't work. For now I've
written my own step to do the job, but it's not as robust as I'd
imagine a Mink step would be, so I'd like to know if I'm either
missing something or if there's a reason why Mink doesn't have steps
for radio buttons. Does anyone know?

dam

unread,
Jan 27, 2012, 7:25:27 PM1/27/12
to Behat
Hi,
I use below steps and it works very well.

When I follow "myRadioID"
Then the "myRadioID" checkbox should be checked

<input class="RadioClass" type="radio" id="myRadioID"
value="RadioValue" name="RadioName" checked="">

Good Luck!

Xillok

unread,
Jan 27, 2012, 10:09:23 PM1/27/12
to Behat
I'll give that a shot, but is that the proper way to handle radio
buttons?

Xillok

unread,
Jan 29, 2012, 1:20:37 PM1/29/12
to Behat
When I try to follow the radio button I get an error that it's not a
link :/

On Jan 27, 6:25 pm, dam <darshan0me...@gmail.com> wrote:

Victor

unread,
Mar 21, 2012, 10:23:50 AM3/21/12
to Behat
Reply all
Reply to author
Forward
0 new messages