vendor/gems/gems/firewatir-1.2.1/MozillaBaseElement.rb
#
# Description:
#   First checks if element exists or not. Then checks if element is enabled or not.
#
# Output:
#   Returns true if element exists and is enabled, else returns false.
#

First checks if element exists or not. Then checks if element is enabled or not.

Returns true if element exists and is enabled, else returns false.
First checks if element exists or not . Then checks if element is enabled or not . Returns true if element exists and is enabled else returns false .
def enabled?
            assert_exists
            jssh_socket.send("#{element_object}.disabled;\n", 0)
            value = read_socket()
            @@current_level = 0
            return true if(value == "false")
            return false if(value == "true")
            return value
        end
def enabled? assert_exists jssh_socket . send ( "#{element_object}.disabled;\n" , 0 ) value = read_socket ( ) @@current_level = 0 return true if ( value == "false" ) return false if ( value == "true" ) return value end
Description:
First checks if element exists or not.
Description : First checks if element exists or not .