Sha256: e7e9ce8d4051c320f5f2de79bd2b2b0aaae4c53850899c5fa8b40687859779d4

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 Bytes

Contents

module Watir
  class Hidden < Input
    def visible?
      false
    end

    def click
      raise Watir::Exception::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

1 entries across 1 versions & 1 rubygems

Version Path
watir-6.14.0 lib/watir/elements/hidden.rb