Sha256: 329062d3f6bb0bfa4613c362430d74c3e502170e7d4eb29e2054621067932dc2
Contents?: true
Size: 745 Bytes
Versions: 3
Compression:
Stored size: 745 Bytes
Contents
# encoding: utf-8 require File.expand_path('spec_helper', File.dirname(__FILE__)) describe "Uls" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end describe "#length" do it "returns the number of uls" do browser.uls.length.should == 2 end end describe "#[]" do it "returns the ul at the given index" do browser.uls[0].id.should == "navbar" end end describe "#each" do it "iterates through uls correctly" do count = 0 browser.uls.each_with_index do |ul, index| ul.id.should == browser.ul(:index, index).id ul.value.should == browser.ul(:index, index).value count += 1 end count.should > 0 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-0.0.9 | spec/watirspec/uls_spec.rb |
watir-webdriver-0.0.8 | spec/watirspec/uls_spec.rb |
watir-webdriver-0.0.7 | spec/watirspec/uls_spec.rb |