Sha256: d0ea7639bc673b640b95751ccc17309e7e8866339371cbf23395d37276defa56

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

module PageObject
  module Elements
    class HiddenField < Element

      def click
        raise "click is not available on the hidden field element"
      end

      protected

      def self.watir_finders
        super + [:text, :value]
      end

    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
page-object-2.1.1 lib/page-object/elements/hidden_field.rb
page-object-2.1 lib/page-object/elements/hidden_field.rb