Sha256: ae4bc5935f72f08737b7c3751e335c8a547e440560494b550dc730cd6e04d7bb
Contents?: true
Size: 746 Bytes
Versions: 2
Compression:
Stored size: 746 Bytes
Contents
# encoding: utf-8 require File.expand_path('spec_helper', File.dirname(__FILE__)) describe "Metas" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end describe "#length" do it "returns the number of meta elements" do browser.metas.length.should == 2 end end describe "#[]" do it "returns the meta element at the given index" do browser.metas[1].name.should == "description" end end describe "#each" do it "iterates through meta elements correctly" do count = 0 browser.metas.each_with_index do |m, index| m.content.should == browser.meta(:index, index).content count += 1 end count.should > 0 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-0.0.9 | spec/watirspec/metas_spec.rb |
watir-webdriver-0.0.8 | spec/watirspec/metas_spec.rb |