Sha256: 0b2f049c4f807138b7e62aefffc0acb4293cb614073aacb27820516f1a955dbd
Contents?: true
Size: 789 Bytes
Versions: 12
Compression:
Stored size: 789 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/spec_helper' describe "Radios" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end describe "#length" do it "returns the number of radios" do browser.radios.length.should == 5 end end describe "#[]" do it "returns the radio button at the given index" do browser.radios[0].id.should == "new_user_newsletter_yes" end end describe "#each" do it "iterates through radio buttons correctly" do browser.radios.each_with_index do |r, index| r.name.should == browser.radio(:index, index).name r.id.should == browser.radio(:index, index).id r.value.should == browser.radio(:index, index).value end end end end
Version data entries
12 entries across 12 versions & 1 rubygems