Sha256: c9c5738cc42fd7fa4b3b446fa0526cdee8914277eafc22dbc9739ef2ac1bc7eb

Contents?: true

Size: 551 Bytes

Versions: 12

Compression:

Stored size: 551 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(*args)
      Hidden.new(self, extract_selector(args).merge(tag_name: 'input', type: 'hidden'))
    end

    def hiddens(*args)
      HiddenCollection.new(self, extract_selector(args).merge(tag_name: 'input', type: 'hidden'))
    end
  end # Container

  class HiddenCollection < InputCollection
  end # HiddenCollection
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
watir-6.19.1 lib/watir/elements/hidden.rb
watir-6.19.0 lib/watir/elements/hidden.rb
watir-6.18.0 lib/watir/elements/hidden.rb
watir-6.17.0 lib/watir/elements/hidden.rb
watir-6.16.5 lib/watir/elements/hidden.rb
watir-6.16.4 lib/watir/elements/hidden.rb
watir-6.16.3 lib/watir/elements/hidden.rb
watir-6.16.2 lib/watir/elements/hidden.rb
watir-6.16.1 lib/watir/elements/hidden.rb
watir-6.16.0 lib/watir/elements/hidden.rb
watir-6.15.1 lib/watir/elements/hidden.rb
watir-6.15.0 lib/watir/elements/hidden.rb