Class: Watir::Hiddens

Inherits:
ElementCollections show all
Defined in:
lib/watir/collections.rb

Overview

this class accesses the hidden fields in the document as a collection Normally a user would not need to create this object as it is returned by the Watir::Container#hiddens method

Instance Method Summary collapse

Methods inherited from ElementCollections

#[], #each, #first, #get_length_of_input_objects, #initialize, #inspect, #last, #show, #to_s

Constructor Details

This class inherits a constructor from Watir::ElementCollections

Instance Method Details

#element_classObject



224
# File 'lib/watir/collections.rb', line 224

def element_class; Hidden; end

#lengthObject

number of hidden elements

browser.hiddens.length


227
228
229
# File 'lib/watir/collections.rb', line 227

def length
  get_length_of_input_objects("hidden")
end