Sha256: a3a0af2d07fa01b7ff38b99742a482512ab380ab01ea123a02041ba9442ccd91
Contents?: true
Size: 883 Bytes
Versions: 25
Compression:
Stored size: 883 Bytes
Contents
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "CheckBoxes" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end describe "#length" do it "returns the number of checkboxes" do browser.checkboxes.length.should == 7 end end describe "#[]" do it "returns the checkbox at the given index" do browser.checkboxes[1].id.should == "new_user_interests_books" end end describe "#each" do it "iterates through checkboxes correctly" do count = 0 browser.checkboxes.each_with_index do |c, index| c.name.should == browser.checkbox(:index, index+1).name c.id.should == browser.checkbox(:index, index+1).id c.value.should == browser.checkbox(:index, index+1).value count += 1 end count.should > 0 end end end
Version data entries
25 entries across 25 versions & 1 rubygems