Sha256: 5f6e6f4848967273ed22a48e2f507874657346b8f511a12bcf1643e72d2000ef
Contents?: true
Size: 732 Bytes
Versions: 12
Compression:
Stored size: 732 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/spec_helper' describe "Labels" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end describe "#length" do it "returns the number of labels" do browser.labels.length.should == 26 # changed this from 25 - Jari end end describe "#[]" do it "returns the pre at the given index" do browser.labels[0].id.should == "first_label" end end describe "#each" do it "iterates through labels correctly" do browser.labels.each_with_index do |l, index| l.id.should == browser.label(:index, index).id l.value.should == browser.label(:index, index).value end end end end
Version data entries
12 entries across 12 versions & 1 rubygems