Sha256: 7027503479114900fe8fb102e1aff4b49542967cc46f7ea1b2f02cf93290df7d
Contents?: true
Size: 657 Bytes
Versions: 3
Compression:
Stored size: 657 Bytes
Contents
# frozen_string_literal: true require 'watirspec_helper' module Watir describe Meta do before 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
watir-7.3.0 | spec/watirspec/elements/meta_spec.rb |
watir-7.2.2 | spec/watirspec/elements/meta_spec.rb |
watir-7.2.1 | spec/watirspec/elements/meta_spec.rb |