Sha256: 733f86a02dbf4f6c15380aae73a6d129c51fd49f87e8214342f803bd23e6b245

Contents?: true

Size: 531 Bytes

Versions: 2

Compression:

Stored size: 531 Bytes

Contents

# encoding: utf-8
require File.expand_path("watirspec/spec_helper", File.dirname(__FILE__))

describe "Element" do

  before :each do
    browser.goto(WatirSpec.url_for("non_control_elements.html"))
  end

  describe "#style" do
    it "returns the style attribute if the property exists" do
      el = browser.div(:id, 'best_language')
      expect(el.style("color")).to eq("red")
      expect(el.style("text-decoration")).to eq("underline")
      expect(el.style("cursor")).to eq("pointer")
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
watir-classic-4.3.0 spec/element_spec.rb
watir-classic-4.2.0 spec/element_spec.rb