Sha256: 5855f02b780c0c56cc4724c5b24345a4bd54ff1c0141ff437d5419325a712bb4
Contents?: true
Size: 756 Bytes
Versions: 2
Compression:
Stored size: 756 Bytes
Contents
# encoding: utf-8 require File.expand_path('spec_helper', File.dirname(__FILE__)) describe "Dds" do before :each do browser.goto(WatirSpec.files + "/definition_lists.html") end describe "#length" do it "returns the number of dds" do browser.dds.length.should == 11 end end describe "#[]" do it "returns the dd at the given index" do browser.dds[1].title.should == "education" end end describe "#each" do it "iterates through dds correctly" do count = 0 browser.dds.each_with_index do |d, index| d.id.should == browser.dd(:index, index).id d.class_name.should == browser.dd(:index, index).class_name 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/dds_spec.rb |
watir-webdriver-0.0.8 | spec/watirspec/dds_spec.rb |