Sha256: ff2351b4d6d13e3ea9d020df3f3c7cd01867114180c3ecc2b596bdb3f1b9c05b
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 Bytes
Contents
# encoding: utf-8 require File.expand_path('spec_helper', File.dirname(__FILE__)) describe "Ps" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end describe "#length" do it "returns the number of ps" do browser.ps.length.should == 5 end end describe "#[]" do it "returns the p at the given index" do browser.ps[0].id.should == "lead" end end describe "#each" do it "iterates through ps correctly" do count = 0 browser.ps.each_with_index do |p, index| p.id.should == browser.p(:index, index).id p.value.should == browser.p(: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/ps_spec.rb |