Sha256: d53051c3ecda6a7a988cac4b764d25ff03b20f25e1d405ad985b588a7873d91d

Contents?: true

Size: 521 Bytes

Versions: 18

Compression:

Stored size: 521 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

18 entries across 18 versions & 1 rubygems

Version Path
page-object-0.5.4 lib/page-object/elements/hidden_field.rb
page-object-0.5.3 lib/page-object/elements/hidden_field.rb
page-object-0.5.2 lib/page-object/elements/hidden_field.rb
page-object-0.5.1 lib/page-object/elements/hidden_field.rb
page-object-0.5.0 lib/page-object/elements/hidden_field.rb
page-object-0.4.4 lib/page-object/elements/hidden_field.rb
page-object-0.4.3 lib/page-object/elements/hidden_field.rb
page-object-0.4.2 lib/page-object/elements/hidden_field.rb
page-object-0.4.1 lib/page-object/elements/hidden_field.rb
page-object-0.4.0 lib/page-object/elements/hidden_field.rb
page-object-0.3.2 lib/page-object/elements/hidden_field.rb
page-object-0.3.1 lib/page-object/elements/hidden_field.rb
page-object-0.3.0 lib/page-object/elements/hidden_field.rb
page-object-0.2.5 lib/page-object/elements/hidden_field.rb
page-object-0.2.4 lib/page-object/elements/hidden_field.rb
page-object-0.2.3 lib/page-object/elements/hidden_field.rb
page-object-0.2.2 lib/page-object/elements/hidden_field.rb
page-object-0.2.1 lib/page-object/elements/hidden_field.rb