Sha256: 7f7ae2fc2d99ba3237445cf43c3c93907c798d5b259fb2425ca797218b92eae3

Contents?: true

Size: 638 Bytes

Versions: 5

Compression:

Stored size: 638 Bytes

Contents

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

describe PageObject::Elements::CheckBox do
  let(:checkbox) { PageObject::Elements::CheckBox }
  
  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 = checkbox.watir_identifier_for t => 'value'
        identifier.keys.first.should == t
      end
    end
    it "should map selenium types to same" do
      [:class, :id, :name, :xpath].each do |t|
        key, value = checkbox.selenium_identifier_for t => 'value'
        key.should == t
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
page-object-0.0.5 spec/page-object/elements/check_box_spec.rb
page-object-0.0.4 spec/page-object/elements/check_box_spec.rb
page-object-0.0.3 spec/page-object/elements/check_box_spec.rb
page-object-0.0.2 spec/page-object/elements/check_box_spec.rb
page-object-0.0.1 spec/page-object/elements/check_box_spec.rb