Sha256: b62d2d1678a2499af4b9f735a21c1804c04f61d7452a1c7c29106e4e9af799c9
Contents?: true
Size: 798 Bytes
Versions: 25
Compression:
Stored size: 798 Bytes
Contents
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Lis" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end describe "#length" do it "returns the number of lis" do browser.lis.length.should == 18 end end describe "#[]" do it "returns the p at the given index" do browser.lis[5].id.should == "non_link_1" end end describe "#each" do it "iterates through lis correctly" do count = 0 browser.lis.each_with_index do |l, index| l.name.should == browser.li(:index, index+1).name l.id.should == browser.li(:index, index+1).id l.value.should == browser.li(:index, index+1).value count += 1 end count.should > 0 end end end
Version data entries
25 entries across 25 versions & 1 rubygems