Sha256: 656a5dcc00c3e7d517079991a7c09a5f2b2010ab202ca1309a018a082a05defa

Contents?: true

Size: 1.65 KB

Versions: 30

Compression:

Stored size: 1.65 KB

Contents

module PageObject
  module Elements
    class << self

      #
      # method to return the collection of tag_name to class mappings
      #
      def tag_to_class
        @tag_to_class ||= {}
      end

      def type_to_class
        @type_to_class ||= {}
      end

      #
      # method to return the element for a tag_name
      #
      def element_class_for(tag_name, type=nil)
        return type_to_class[type.to_sym] if type
        tag_to_class[tag_name.to_sym] || ::PageObject::Elements::Element
      end
      
    end
  end
end


require 'page-object/elements/element'
require 'page-object/elements/link'
require 'page-object/elements/text_field'
require 'page-object/elements/select_list'
require 'page-object/elements/check_box'
require 'page-object/elements/button'
require 'page-object/elements/radio_button'
require 'page-object/elements/div'
require 'page-object/elements/table'
require 'page-object/elements/table_cell'
require 'page-object/elements/table_row'
require 'page-object/elements/span'
require 'page-object/elements/image'
require 'page-object/elements/hidden_field'
require 'page-object/elements/form'
require 'page-object/elements/text_area'
require 'page-object/elements/list_item'
require 'page-object/elements/unordered_list'
require 'page-object/elements/ordered_list'
require 'page-object/elements/option'
require 'page-object/elements/heading'
require 'page-object/elements/paragraph'
require 'page-object/elements/label'
require 'page-object/elements/file_field'
require 'page-object/elements/area'
require 'page-object/elements/canvas'
require 'page-object/elements/media'
require 'page-object/elements/audio'
require 'page-object/elements/video'


Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
meeane-page-object-0.1.11 lib/page-object/elements.rb
page-object-1.0.2 lib/page-object/elements.rb
page-object-1.0.1 lib/page-object/elements.rb
page-object-1.0 lib/page-object/elements.rb
page-object-0.9.8 lib/page-object/elements.rb
page-object-0.9.7 lib/page-object/elements.rb
page-object-0.9.6 lib/page-object/elements.rb
page-object-0.9.5 lib/page-object/elements.rb
page-object-0.9.4 lib/page-object/elements.rb
page-object-0.9.3 lib/page-object/elements.rb
page-object-0.9.2 lib/page-object/elements.rb
page-object-0.9.1 lib/page-object/elements.rb
page-object-0.9.0 lib/page-object/elements.rb
page-object-0.8.10 lib/page-object/elements.rb
page-object-0.8.9 lib/page-object/elements.rb
page-object-0.8.8 lib/page-object/elements.rb
page-object-0.8.7 lib/page-object/elements.rb
page-object-0.8.6.1 lib/page-object/elements.rb
page-object-0.8.6 lib/page-object/elements.rb
page-object-0.8.5 lib/page-object/elements.rb