Sha256: 92797ef530025a69ed137a8abcaf3eae1f68d0dcadcd18cfa133af7196f0f406

Contents?: true

Size: 640 Bytes

Versions: 18

Compression:

Stored size: 640 Bytes

Contents

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

describe PageObject::Elements::ListItem do
  let(:list_item) { PageObject::Elements::ListItem }

  describe "when mapping how to find an element" do
    it "should map watir types to same" do
      [:class, :id, :index, :xpath].each do |t|
        identifier = list_item.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 = list_item.selenium_identifier_for t => 'value'
        key.should == t
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
page-object-0.5.4 spec/page-object/elements/list_item_spec.rb
page-object-0.5.3 spec/page-object/elements/list_item_spec.rb
page-object-0.5.2 spec/page-object/elements/list_item_spec.rb
page-object-0.5.1 spec/page-object/elements/list_item_spec.rb
page-object-0.5.0 spec/page-object/elements/list_item_spec.rb
page-object-0.4.4 spec/page-object/elements/list_item_spec.rb
page-object-0.4.3 spec/page-object/elements/list_item_spec.rb
page-object-0.4.2 spec/page-object/elements/list_item_spec.rb
page-object-0.4.1 spec/page-object/elements/list_item_spec.rb
page-object-0.4.0 spec/page-object/elements/list_item_spec.rb
page-object-0.3.2 spec/page-object/elements/list_item_spec.rb
page-object-0.3.1 spec/page-object/elements/list_item_spec.rb
page-object-0.3.0 spec/page-object/elements/list_item_spec.rb
page-object-0.2.5 spec/page-object/elements/list_item_spec.rb
page-object-0.2.4 spec/page-object/elements/list_item_spec.rb
page-object-0.2.3 spec/page-object/elements/list_item_spec.rb
page-object-0.2.2 spec/page-object/elements/list_item_spec.rb
page-object-0.2.1 spec/page-object/elements/list_item_spec.rb