Sha256: 91904108997ffbe6e5700d5e98c90cad2733128a1feb1a0692491536375714e9
Contents?: true
Size: 848 Bytes
Versions: 2
Compression:
Stored size: 848 Bytes
Contents
# encoding: utf-8 require File.expand_path('spec_helper', File.dirname(__FILE__)) 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 count = 0 browser.tables.each_with_index do |t, index| t.id.should == browser.table(:index, index).id t.value.should == browser.table(:index, index).value count += 1 end count.should > 0 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-0.0.9 | spec/watirspec/tables_spec.rb |
watir-webdriver-0.0.8 | spec/watirspec/tables_spec.rb |