Sha256: 3089a6985df967c1e0aedac71082f44c431c3977b009532c2f31b4a89ee190be

Contents?: true

Size: 614 Bytes

Versions: 3

Compression:

Stored size: 614 Bytes

Contents

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

describe PageObject::Elements::Div do
  let(:div) { PageObject::Elements::Div }
  
  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 = div.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 = div.selenium_identifier_for t => 'value'
        key.should == t
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
page-object-0.2 spec/page-object/elements/div_spec.rb
page-object-0.1.1 spec/page-object/elements/div_spec.rb
page-object-0.1 spec/page-object/elements/div_spec.rb