Sha256: 7fab284c51fdcd06a5dea04900a7ba12389e0aa93f839e36f7daf0b270f9d0f0
Contents?: true
Size: 715 Bytes
Versions: 12
Compression:
Stored size: 715 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/spec_helper' describe "Strongs" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end describe "#length" do it "returns the number of divs" do browser.strongs.length.should == 2 end end describe "#[]" do it "returns the div at the given index" do browser.strongs[0].id.should == "descartes" end end describe "#each" do it "iterates through divs correctly" do browser.strongs.each_with_index do |s, index| strong = browser.strong(:index, index) s.id.should == strong.id s.class_name.should == strong.class_name end end end end
Version data entries
12 entries across 12 versions & 1 rubygems