vendor/gems/gems/firewatir-1.2.1/container.rb
# 
# Description:
#   This method shows the available objects on the current page.
#   This is usually only used for debugging or writing new test scripts.
#   This is a nice feature to help find out what HTML objects are on a page
#   when developing a test case using FireWatir.
#
# Typical Usage:
#   ff.show_all_objects
#
# Output:
#   Prints all the available elements on the page.
#

This method shows the available objects on the current page.
This is usually only used for debugging or writing new test scripts.
This is a nice feature to help find out what HTML objects are on a page
when developing a test case using FireWatir.



Prints all the available elements on the page.
This method shows the available objects on the current page . This is usually only used for debugging or writing new test scripts . This is a nice feature to help find out what HTML objects are on a page when developing a test case using FireWatir . Prints all the available elements on the page .
def show_all_objects
        puts "-----------Objects in the current context-------------" 
        locate if defined?(locate)
        elements = Document.new(self).all
        puts elements.length
        elements.each  do |n|
            puts n.tagName
            puts n.to_s
            puts "------------------------------------------" 
        end
        puts "Total number of objects in the current context :	#{elements.length}"
        return elements
	end
def show_all_objects puts "-----------Objects in the current context-------------" locate if defined? ( locate ) elements = Document . new ( self ) . all puts elements . length elements . each do | n | puts n . tagName puts n . to_s puts "------------------------------------------" end puts "Total number of objects in the current context :	#{elements.length}" return elements end
Description:
This method shows the available objects on the current page.
Description : This method shows the available objects on the current page .
# Test the index access. 
 # puts doc[35].to_s
