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-2.0.0 lib/page-object/elements/hidden_field.rb
page-object-1.2.2 lib/page-object/elements/hidden_field.rb
page-object-1.2.1 lib/page-object/elements/hidden_field.rb
page-object-1.2.0 lib/page-object/elements/hidden_field.rb
page-object-1.1.1 lib/page-object/elements/hidden_field.rb
page_object-1.1.3 lib/page-object/elements/hidden_field.rb
page_object-1.1.2 lib/page-object/elements/hidden_field.rb
page_object-1.1.1 lib/page-object/elements/hidden_field.rb
page-object-1.1.0 lib/page-object/elements/hidden_field.rb
page-object-1.0.3 lib/page-object/elements/hidden_field.rb
meeane-page-object-0.1.11 lib/page-object/elements/hidden_field.rb
page-object-1.0.2 lib/page-object/elements/hidden_field.rb
page-object-1.0.1 lib/page-object/elements/hidden_field.rb
page-object-1.0 lib/page-object/elements/hidden_field.rb
page-object-0.9.8 lib/page-object/elements/hidden_field.rb
page-object-0.9.7 lib/page-object/elements/hidden_field.rb
page-object-0.9.6 lib/page-object/elements/hidden_field.rb
page-object-0.9.5 lib/page-object/elements/hidden_field.rb
page-object-0.9.4 lib/page-object/elements/hidden_field.rb
page-object-0.9.3 lib/page-object/elements/hidden_field.rb