Sha256: 8323581e3de6655f67098e6463d6d60048ca21bd5fe0000dfc87109fe17884a2
Contents?: true
Size: 793 Bytes
Versions: 1
Compression:
Stored size: 793 Bytes
Contents
# encoding: utf-8 require File.expand_path('spec_helper', File.dirname(__FILE__)) describe "Maps" do before :each do browser.goto(WatirSpec.files + "/images.html") end describe "#length" do it "returns the number of maps" do browser.maps.length.should == 2 end end describe "#[]" do it "returns the p at the given index" do browser.maps[0].id.should == "triangle_map" end end describe "#each" do it "iterates through maps correctly" do count = 0 browser.maps.each_with_index do |m, index| m.name.should == browser.map(:index, index).name m.id.should == browser.map(:index, index).id m.value.should == browser.map(:index, index).value count += 1 end count.should > 0 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-0.0.7 | spec/watirspec/maps_spec.rb |