Sha256: e0d1e148e2bdd5a765374979a6510649ecc11c7bb904cadc34fb42029091eb7c

Contents?: true

Size: 417 Bytes

Versions: 5

Compression:

Stored size: 417 Bytes

Contents

require "watirspec_helper"

describe "Collections" do

  before :each do
    browser.goto(WatirSpec.url_for("collections.html"))
  end

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
watir-6.1.0 spec/watirspec/elements/collections_spec.rb
watir-6.0.3 spec/watirspec/elements/collections_spec.rb
watir-6.0.2 spec/watirspec/elements/collections_spec.rb
watir-6.0.1 spec/watirspec/elements/collections_spec.rb
watir-6.0.0 spec/watirspec/elements/collections_spec.rb