Sha256: 3499e45064f9f22009c6c373a9832b9a72b39cf6974362f6ae02e99c8d5faabf

Contents?: true

Size: 639 Bytes

Versions: 11

Compression:

Stored size: 639 Bytes

Contents

require 'spec_helper'
require 'page-object/elements'

describe PageObject::Elements::Heading do
  let(:heading) { PageObject::Elements::Heading }

  describe "when mapping how to find an element" do
    it "should map watir types to same" do
      [:class, :id, :index, :name, :xpath].each do |t|
        identifier = heading.watir_identifier_for t => 'value'
        identifier.keys.first.should == t
      end
    end

    it "should map selenium types to same" do
      [:class, :id, :index, :name, :xpath].each do |t|
        key, value = heading.selenium_identifier_for t => 'value'
        key.should == t
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
page-object-0.5.4 spec/page-object/elements/heading_spec.rb
page-object-0.5.3 spec/page-object/elements/heading_spec.rb
page-object-0.5.2 spec/page-object/elements/heading_spec.rb
page-object-0.5.1 spec/page-object/elements/heading_spec.rb
page-object-0.5.0 spec/page-object/elements/heading_spec.rb
page-object-0.4.4 spec/page-object/elements/heading_spec.rb
page-object-0.4.3 spec/page-object/elements/heading_spec.rb
page-object-0.4.2 spec/page-object/elements/heading_spec.rb
page-object-0.4.1 spec/page-object/elements/heading_spec.rb
page-object-0.4.0 spec/page-object/elements/heading_spec.rb
page-object-0.3.2 spec/page-object/elements/heading_spec.rb