Sha256: a11f9a7a870f94286f758af4c914ed439c929fb3affd2ce6f727f04056a175ff
Contents?: true
Size: 810 Bytes
Versions: 25
Compression:
Stored size: 810 Bytes
Contents
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Ols" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end describe "#length" do it "returns the number of ols" do browser.ols.length.should == 2 end end describe "#[]" do it "returns the ol at the given index" do browser.ols[1].id.should == "favorite_compounds" end end describe "#each" do it "iterates through ols correctly" do count = 0 browser.ols.each_with_index do |ul, index| ul.name.should == browser.ol(:index, index+1).name ul.id.should == browser.ol(:index, index+1).id ul.value.should == browser.ol(:index, index+1).value count += 1 end count.should > 0 end end end
Version data entries
25 entries across 25 versions & 1 rubygems