Sha256: 1c8714615b0b294e16e1afc62209fe25fa4b369d9c76775123e129e8dd21ece6

Contents?: true

Size: 570 Bytes

Versions: 19

Compression:

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

19 entries across 19 versions & 1 rubygems

Version Path
watir-6.13.0 lib/watir/elements/hidden.rb
watir-6.12.0 lib/watir/elements/hidden.rb
watir-6.11.0 lib/watir/elements/hidden.rb
watir-6.11.0.beta2 lib/watir/elements/hidden.rb
watir-6.11.0.beta1 lib/watir/elements/hidden.rb
watir-6.10.3 lib/watir/elements/hidden.rb
watir-6.10.2 lib/watir/elements/hidden.rb
watir-6.10.0 lib/watir/elements/hidden.rb
watir-6.9.1 lib/watir/elements/hidden.rb
watir-6.9.0 lib/watir/elements/hidden.rb
watir-6.8.4 lib/watir/elements/hidden.rb
watir-6.8.3 lib/watir/elements/hidden.rb
watir-6.8.2 lib/watir/elements/hidden.rb
watir-6.8.1 lib/watir/elements/hidden.rb
watir-6.8.0 lib/watir/elements/hidden.rb
watir-6.7.3 lib/watir/elements/hidden.rb
watir-6.7.2 lib/watir/elements/hidden.rb
watir-6.7.1 lib/watir/elements/hidden.rb
watir-6.7.0 lib/watir/elements/hidden.rb