Sha256: fe0faeecee73439c2a9fe9dd4c049a68755f5bcb7946bea969c99c4b3bbfcae5

Contents?: true

Size: 631 Bytes

Versions: 15

Compression:

Stored size: 631 Bytes

Contents

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

describe PageObject::Elements::Span do
  let(:span) { PageObject::Elements::Span }

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

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