Re: [wtr-general] Watir, Rspec, and radio buttons.

2010-02-09 Thread Charley Baker
Wrong matcher, use be_true instead: questionframe.radio(:id, "rlbYesNo_0").checked? should be_true -Charley Lead Developer, Watir, http://watir.com On Tue, Feb 9, 2010 at 8:58 AM, James wrote: > I'm trying to check if a radio button is checked or not, using the > Rspec "should" command, but

[wtr-general] Watir, Rspec, and radio buttons.

2010-02-09 Thread James
I'm trying to check if a radio button is checked or not, using the Rspec "should" command, but it's not acting as I would expect. My code: puts questionframe.radio(:id, "rlbYesNo_0").checked? questionframe.radio(:id, "rlbYesNo_0").checked? should equal true It outputs "true" for the firs