Sha256: b56d34460527837741ce5d6ca0122a348af9c2ac3606d7f2d7f631867726c97e

Contents?: true

Size: 581 Bytes

Versions: 38

Compression:

Stored size: 581 Bytes

Contents

require "watirspec_helper"

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

  describe "#exist?" do
    it "returns true if the meta tag exists" do
      expect(browser.meta(http_equiv: "Content-Type")).to exist
    end

    it "returns the first meta if given no args" do
      expect(browser.meta).to exist
    end
  end

  describe "content" do
    it "returns the content attribute of the tag" do
      expect(browser.meta(http_equiv: "Content-Type").content).to eq "text/html; charset=utf-8"
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
watir-6.13.0 spec/watirspec/elements/meta_spec.rb
watir-6.12.0 spec/watirspec/elements/meta_spec.rb
watir-6.11.0 spec/watirspec/elements/meta_spec.rb
watir-6.11.0.beta2 spec/watirspec/elements/meta_spec.rb
watir-6.11.0.beta1 spec/watirspec/elements/meta_spec.rb
watir-6.10.3 spec/watirspec/elements/meta_spec.rb
watir-6.10.2 spec/watirspec/elements/meta_spec.rb
watir-6.10.0 spec/watirspec/elements/meta_spec.rb
watir-6.9.1 spec/watirspec/elements/meta_spec.rb
watir-6.9.0 spec/watirspec/elements/meta_spec.rb
watir-6.8.4 spec/watirspec/elements/meta_spec.rb
watir-6.8.3 spec/watirspec/elements/meta_spec.rb
watir-6.8.2 spec/watirspec/elements/meta_spec.rb
watir-6.8.1 spec/watirspec/elements/meta_spec.rb
watir-6.8.0 spec/watirspec/elements/meta_spec.rb
watir-6.7.3 spec/watirspec/elements/meta_spec.rb
watir-6.7.2 spec/watirspec/elements/meta_spec.rb
watir-6.7.1 spec/watirspec/elements/meta_spec.rb
watir-6.7.0 spec/watirspec/elements/meta_spec.rb
watir-6.6.3 spec/watirspec/elements/meta_spec.rb