Sha256: 87b35cb2c3e31e7803d986c650fdffb4b2e7a25a0bbd5d153d8d1ca41bc49c9f
Contents?: true
Size: 744 Bytes
Versions: 3
Compression:
Stored size: 744 Bytes
Contents
# encoding: utf-8 require File.expand_path('spec_helper', File.dirname(__FILE__)) describe "Areas" do before :each do browser.goto(WatirSpec.files + "/images.html") end describe "#length" do it "returns the number of areas" do browser.areas.length.should == 3 end end describe "#[]" do it "returns the area at the given index" do browser.areas[0].id.should == "NCE" end end describe "#each" do it "iterates through areas correctly" do count = 0 browser.areas.each_with_index do |a, index| a.id.should == browser.area(:index, index).id a.title.should == browser.area(:index, index).title 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/areas_spec.rb |
watir-webdriver-0.0.8 | spec/watirspec/areas_spec.rb |
watir-webdriver-0.0.7 | spec/watirspec/areas_spec.rb |