Sha256: 9490d82c496e6d6f70b785c7376ea3aed739f660656db2ab376f199340777b52
Contents?: true
Size: 454 Bytes
Versions: 5
Compression:
Stored size: 454 Bytes
Contents
require File.dirname(__FILE__) + '/watirspec/spec_helper' describe "Celerity.index_offset" do before :all do browser.goto(WatirSpec.files + "/non_control_elements.html") Celerity.index_offset = 0 end it "returns the correct divs" do divs = browser.divs.to_a divs.each_with_index do |div, idx| browser.div(:index, idx).id.should == div.id end end after :all do Celerity.index_offset = 1 end end
Version data entries
5 entries across 5 versions & 3 rubygems