Sha256: c2d123d7d62259e7c9030b546a92d06007ba1c3fe7e4b16bade60bfe34e76156

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 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

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir-webdriver-0.0.7 spec/watirspec/collections_spec.rb