Sha256: 5c0588a8ab46f62ebb61e2bd484a3213ec4f7bf784407d5391d0cd591c2c47c1
Contents?: true
Size: 771 Bytes
Versions: 12
Compression:
Stored size: 771 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/spec_helper' describe "Tables" do before :each do browser.goto(WatirSpec.files + "/tables.html") end describe "#length" do it "returns the number of tables" do browser.tables.length.should == 4 end end describe "#[]" do it "returns the p at the given index" do browser.tables[0].id.should == "axis_example" browser.tables[1].id.should == "outer" browser.tables[2].id.should == "inner" end end describe "#each" do it "iterates through tables correctly" do browser.tables.each_with_index do |t, index| t.id.should == browser.table(:index, index).id t.value.should == browser.table(:index, index).value end end end end
Version data entries
12 entries across 12 versions & 1 rubygems