Sha256: 51afc1de1d6403fde5bd38e6946c17eba44d05aadf028e144d5705463f3d806c

Contents?: true

Size: 445 Bytes

Versions: 48

Compression:

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

48 entries across 48 versions & 3 rubygems

Version Path
page-object-0.7.2 lib/page-object/elements/hidden_field.rb
page-object-0.7.1 lib/page-object/elements/hidden_field.rb
page-object-0.7.0 lib/page-object/elements/hidden_field.rb
page-object-0.6.9 lib/page-object/elements/hidden_field.rb
page-object-0.6.8 lib/page-object/elements/hidden_field.rb
page-object-0.6.7 lib/page-object/elements/hidden_field.rb
page-object-0.6.6 lib/page-object/elements/hidden_field.rb
page-object-0.6.5 lib/page-object/elements/hidden_field.rb