Sha256: 5c8c37ba4e69e475c11d69b15411f3118059b83a57d2ccf658015a1181f096a4

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

require "watirspec_helper"

describe "Elements" do
  before :each do
    browser.goto(WatirSpec.url_for("forms_with_input_elements.html"))
  end

  describe "#[]" do
    context "when elements do not exist" do
      it "returns not existing element" do
        expect(browser.elements(id: "non-existing")[0]).not_to exist
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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