Sha256: 6f6ae287d1b5de28f092caaa762a027b2bbc28007ba97debda887669cc94c8f3
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
# encoding: utf-8 require File.expand_path('spec_helper', File.dirname(__FILE__)) describe "Ols" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end bug "http://github.com/jarib/celerity/issues#issue/25", :celerity do describe "with selectors" do it "returns the matching elements" do browser.ols(:class => "chemistry").to_a.should == [browser.ol(:class => "chemistry")] end end 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[0].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.id.should == browser.ol(:index, index).id ul.value.should == browser.ol(:index, index).value count += 1 end count.should > 0 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-0.1.1 | spec/watirspec/ols_spec.rb |
watir-webdriver-0.1.0 | spec/watirspec/ols_spec.rb |