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