Sha256: 57075fa0beebfc860e381a2de4cbd46276ddc39155d79b0dddcc145cbf130727

Contents?: true

Size: 551 Bytes

Versions: 5

Compression:

Stored size: 551 Bytes

Contents

module PageObject
  module Elements
    class HiddenField < Element
      
      def click
        raise "click is not available on hidden field element with Selenium or Watir"
      end

      protected
      
      def self.watir_finders
        super + [:tag_name, :text]
      end
      
      def self.watir_mapping
        super.merge({:css => :tag_name})
      end
      
      def self.selenium_finders
        super + [:css]
      end
      
      def self.selenium_mapping
        super.merge({:tag_name => :css})
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
page-object-0.2 lib/page-object/elements/hidden_field.rb
page-object-0.1.1 lib/page-object/elements/hidden_field.rb
page-object-0.1 lib/page-object/elements/hidden_field.rb
page-object-0.0.5 lib/page-object/elements/hidden_field.rb
page-object-0.0.4 lib/page-object/elements/hidden_field.rb