Sha256: f8b664398e98826ab66cf74a2b46316e799ddff46bc5ac0def7740513a4d4478

Contents?: true

Size: 523 Bytes

Versions: 7

Compression:

Stored size: 523 Bytes

Contents

module Watir
  class Hidden < Input
    def visible?
      false
    end

    def click
      raise ObjectDisabledException, 'click is not available on the hidden field element'
    end
  end

  module Container
    def hidden(opts = {})
      Hidden.new(self, opts.merge(tag_name: 'input', type: 'hidden'))
    end

    def hiddens(opts = {})
      HiddenCollection.new(self, opts.merge(tag_name: 'input', type: 'hidden'))
    end
  end # Container

  class HiddenCollection < InputCollection
  end # HiddenCollection
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
watir-7.1.0 lib/watir/elements/hidden.rb
watir-7.0.0 lib/watir/elements/hidden.rb
watir-7.0.0.beta5 lib/watir/elements/hidden.rb
watir-7.0.0.beta4 lib/watir/elements/hidden.rb
watir-7.0.0.beta3 lib/watir/elements/hidden.rb
watir-7.0.0.beta2 lib/watir/elements/hidden.rb
watir-7.0.0.beta1 lib/watir/elements/hidden.rb