Sha256: 3b95453e779ab8742956eac0ea4a5c7ee6b795eadaf32a67b8f678a55c5cfbc9
Contents?: true
Size: 737 Bytes
Versions: 12
Compression:
Stored size: 737 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/spec_helper' describe "Dls" do before :each do browser.goto(WatirSpec.files + "/definition_lists.html") end describe "#length" do it "returns the number of dls" do browser.dls.length.should == 3 end end describe "#[]" do it "returns the dl at the given index" do browser.dls[0].id.should == "experience-list" end end describe "#each" do it "iterates through dls correctly" do browser.dls.each_with_index do |d, index| d.text.should == browser.dl(:index, index).text d.id.should == browser.dl(:index, index).id d.class_name.should == browser.dl(:index, index).class_name end end end end
Version data entries
12 entries across 12 versions & 1 rubygems