vendor/gems/gems/firewatir-1.2.1/htmlelements.rb
#
# Description:
#   Highlights the image ( in fact it adds or removes a border around the image)
#
# Input:
#   - set_or_clear - :set to set the border, :clear to remove it
#

Highlights the image ( in fact it adds or removes a border around the image)

:set to set the border, :clear to remove it
Highlights the image ( in fact it adds or removes a border around the image ) : set to set the border : clear to remove it
def highlight( set_or_clear )
        if set_or_clear == :set
            begin
                @original_border = @o.border
                @o.border = 1
            rescue
                @original_border = nil
            end
        else
            begin 
                @o.border = @original_border 
                @original_border = nil
            rescue
            ensure
                @original_border = nil
            end
        end
    end
def highlight ( set_or_clear ) if set_or_clear == :set begin @original_border = @o . border @o . border = 1 rescue @original_border = nil end else begin @o . border = @original_border @original_border = nil rescue ensure @original_border = nil end end end
Description:
Highlights the image ( in fact it adds or removes a border around the image)
Description : Highlights the image ( in fact it adds or removes a border around the image )
# we could be here for a number of reasons...

set_or_clear
<not_specific>