Sha256: c28c6f34dbad636c1ebcce4a30858af996878248e3a284b70d2405f53366b643

Contents?: true

Size: 599 Bytes

Versions: 20

Compression:

Stored size: 599 Bytes

Contents

require 'watirspec_helper'

describe 'Font' do
  before :each do
    browser.goto(WatirSpec.url_for('font.html'))
  end

  it 'finds the font element' do
    expect(browser.font(index: 0)).to exist
  end

  it 'knows about the color attribute' do
    expect(browser.font(index: 0).color).to eq '#ff00ff'
  end

  it 'knows about the face attribute' do
    expect(browser.font(index: 0).face).to eq 'Helvetica'
  end

  it 'knows about the size attribute' do
    expect(browser.font(index: 0).size).to eq '12'
  end

  it 'finds all font elements' do
    expect(browser.fonts.size).to eq 1
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
watir-7.1.0 spec/watirspec/elements/font_spec.rb
watir-7.0.0 spec/watirspec/elements/font_spec.rb
watir-7.0.0.beta5 spec/watirspec/elements/font_spec.rb
watir-7.0.0.beta4 spec/watirspec/elements/font_spec.rb
watir-7.0.0.beta3 spec/watirspec/elements/font_spec.rb
watir-7.0.0.beta2 spec/watirspec/elements/font_spec.rb
watir-7.0.0.beta1 spec/watirspec/elements/font_spec.rb
watir-6.19.1 spec/watirspec/elements/font_spec.rb
watir-6.19.0 spec/watirspec/elements/font_spec.rb
watir-6.18.0 spec/watirspec/elements/font_spec.rb
watir-6.17.0 spec/watirspec/elements/font_spec.rb
watir-6.16.5 spec/watirspec/elements/font_spec.rb
watir-6.16.4 spec/watirspec/elements/font_spec.rb
watir-6.16.3 spec/watirspec/elements/font_spec.rb
watir-6.16.2 spec/watirspec/elements/font_spec.rb
watir-6.16.1 spec/watirspec/elements/font_spec.rb
watir-6.16.0 spec/watirspec/elements/font_spec.rb
watir-6.15.1 spec/watirspec/elements/font_spec.rb
watir-6.15.0 spec/watirspec/elements/font_spec.rb
watir-6.14.0 spec/watirspec/elements/font_spec.rb