Sha256: c8a0d27302d3791d9cb3fce35ec691ad8b92ff6c41b2047d1c7e0bfd3d12a4c6

Contents?: true

Size: 568 Bytes

Versions: 4

Compression:

Stored size: 568 Bytes

Contents

# encoding: utf-8
require File.expand_path('spec_helper', File.dirname(__FILE__))

describe "Collections" do

  before :each do
    browser.goto(WatirSpec.files + "/collections.html")
  end

  it "returns inner elements of parent element having different html tag" do
    browser.span(:id => "a_span").divs.size.should == 2
  end

  bug "http://code.google.com/p/selenium/issues/detail?id=695", [:webdriver, :ie] do
    it "returns inner elements of parent element having same html tag" do
      browser.span(:id => "a_span").spans.size.should == 2
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
watir-webdriver-0.1.1 spec/watirspec/collections_spec.rb
watir-webdriver-0.1.0 spec/watirspec/collections_spec.rb
watir-webdriver-0.0.9 spec/watirspec/collections_spec.rb
watir-webdriver-0.0.8 spec/watirspec/collections_spec.rb