vendor/gems/gems/firewatir-1.2.1/MozillaBaseElement.rb
#
# Description:
#   Checks if element exists or not. If element is not located yet then first locates the element.
#
# Output:
#   True if element exists, false otherwise.
#

Checks if element exists or not. If element is not located yet then first locates the element.

True if element exists, false otherwise.
Checks if element exists or not . If element is not located yet then first locates the element . True if element exists false otherwise .
def exists?
            if(element_object == nil || element_object == "")
                locate if defined?(locate)
                if(@element_name == nil || @element_name == "")
                    return false
                else
                    return true
                end
            else
                return true
            end
            @@current_level = 0
            if(element_object == nil || element_object == "")
                return false
            else
                return true
            end
        end
def exists? if ( element_object == nil || element_object == "" ) locate if defined? ( locate ) if ( @element_name == nil || @element_name == "" ) return false else return true end else return true end @@current_level = 0 if ( element_object == nil || element_object == "" ) return false else return true end end
Description:
Checks if element exists or not.
Description : Checks if element exists or not .
#puts "element is : #{element_object}"
 # If elements array has changed locate the element again. So that the element name points to correct element.
 #puts "locating element"
 #puts caller(0)
 #puts "element name is : #{@element_name}"
 #puts "not locating the element again"
