Sha256: aad6d33974a6af4d7fc4b6ae6092c2f11498bb10c35148280c580e93ef2067e8

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper.rb'

describe "Celerity.index_offset" do

  before :all do
    @browser = Celerity::Browser.new(BROWSER_OPTIONS)
    @browser.goto(HTML_DIR + "/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
    @browser.close
    Celerity.index_offset = 1
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caius-celerity-0.0.6.11 spec/index_offset_spec.rb