Class: Watir::Radios
- Inherits:
 - 
      ElementCollections
      
        
- Object
 - ElementCollections
 - Watir::Radios
 
 
- Defined in:
 - lib/watir/collections.rb
 
Overview
this class accesses the radio buttons in the document as a collection Normally a user would not need to create this object as it is returned by the Watir::Container#radios method
Instance Method Summary collapse
- #element_class ⇒ Object
 - 
  
    
      #length  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
number of radios browser.radios.length.
 
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_class ⇒ Object
      122  | 
    
      # File 'lib/watir/collections.rb', line 122 def element_class; Radio; end  | 
  
#length ⇒ Object
number of radios
browser.radios.length
  
      125 126 127  | 
    
      # File 'lib/watir/collections.rb', line 125 def length get_length_of_input_objects("radio") end  |