Sha256: f5a155b2085e1c0513937415b39a98bbe1b27b8cb5c4063dceb7fe35b24cf6a4

Contents?: true

Size: 601 Bytes

Versions: 38

Compression:

Stored size: 601 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

38 entries across 38 versions & 1 rubygems

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