Sha256: bd65e92377e291c27e96290b0f0653d3dc91aae62c00a0fee42acba62ad7bda9
Contents?: true
Size: 1010 Bytes
Versions: 3
Compression:
Stored size: 1010 Bytes
Contents
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Dds" do before :each do browser.goto(WatirSpec.files + "/definition_lists.html") end bug "http://github.com/jarib/celerity/issues#issue/25", :celerity do describe "with selectors" do it "returns the matching elements" do browser.dds(:text => "11 years").to_a.should == [browser.dd(:text => "11 years")] end end 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-0.1.4 | spec/watirspec/dds_spec.rb |
watir-webdriver-0.1.3 | spec/watirspec/dds_spec.rb |
watir-webdriver-0.1.2 | spec/watirspec/dds_spec.rb |