Sha256: e2a784d18f71ca4db33c9ed3488923069ab2bd69a464f9d82f32ad6c5b77dcb9
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watir-6.10.1 | spec/watirspec/elements/meta_spec.rb |