Sha256: b16d40a13b03cf89817590546f987f60d0c9af34cead996773816420b7acac35

Contents?: true

Size: 679 Bytes

Versions: 12

Compression:

Stored size: 679 Bytes

Contents

# encoding: utf-8
require File.dirname(__FILE__) + '/spec_helper'

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
      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
      end
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
watir-webdriver-0.0.6 spec/watirspec/dds_spec.rb
watir-webdriver-0.0.5 spec/watirspec/dds_spec.rb
watir-webdriver-0.0.4 spec/watirspec/dds_spec.rb
watir-webdriver-0.0.3 spec/watirspec/dds_spec.rb
watir-webdriver-0.0.2 spec/watirspec/dds_spec.rb
watir-webdriver-0.0.1 spec/watirspec/dds_spec.rb
watir-webdriver-0.0.1.dev7 spec/watirspec/dds_spec.rb
watir-webdriver-0.0.1.dev5 spec/watirspec/dds_spec.rb
watir-webdriver-0.0.1.dev4 spec/watirspec/dds_spec.rb
watir-webdriver-0.0.1.dev3 spec/watirspec/dds_spec.rb
watir-webdriver-0.0.1.dev2 spec/watirspec/dds_spec.rb
watir-webdriver-0.0.1.dev spec/watirspec/dds_spec.rb