lib/watir/elements/hidden.rb in watir-6.6.3 vs lib/watir/elements/hidden.rb in watir-6.7.0

- old
+ new

@@ -1,9 +1,14 @@ 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"))