Sha256: 3dc8c510ca814301136014fcfbe335cb528ef942789415d70c96ce80f06ca28c

Contents?: true

Size: 467 Bytes

Versions: 7

Compression:

Stored size: 467 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 + [:text, :value]
      end

      def self.selenium_finders
        super + [:value]
      end
    end

    ::PageObject::Elements.type_to_class[:hidden] = ::PageObject::Elements::HiddenField
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
page-object-lds-0.0.14 lib/page-object/elements/hidden_field.rb
page-object-lds-0.0.13 lib/page-object/elements/hidden_field.rb
page-object-lds-0.0.12 lib/page-object/elements/hidden_field.rb
page-object-lds-0.0.11 lib/page-object/elements/hidden_field.rb
page-object-lds-0.0.1 lib/page-object/elements/hidden_field.rb
meeane-page-object-0.1.10 lib/page-object/elements/hidden_field.rb
meeane-page-object-0.1.8 lib/page-object/elements/hidden_field.rb