Sha256: 9e35783eecec5b906f91093a6df302bd7746446c8907ec8463c21d2cbe54fa62

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 Bytes

Contents

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

describe "Elements" do

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

  it "returns a collection of Watir::Element when searching with :css" do
    elements = browser.elements(:css => "div")
    expect(elements.size).to be > 0
    elements.each do |element|
      expect(element.class).to eq(Watir::Element)
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
watir-classic-4.3.0 spec/elements_spec.rb
watir-classic-4.2.0 spec/elements_spec.rb