Sha256: 00b5a0ef2eb9720cdabb8804d9f9e87e269a23faa1e0375fefb553dddd84f6ac
Contents?: true
Size: 792 Bytes
Versions: 3
Compression:
Stored size: 792 Bytes
Contents
# encoding: utf-8 require File.expand_path('spec_helper', File.dirname(__FILE__)) 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 count = 0 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 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/strongs_spec.rb |
watir-webdriver-0.0.8 | spec/watirspec/strongs_spec.rb |
watir-webdriver-0.0.7 | spec/watirspec/strongs_spec.rb |