vendor/gems/gems/firewatir-1.2.1/htmlelements.rb
#
# Description:
#   Override the highlight method, as if the tables rows are set to have a background color, 
#   this will override the table background color,  and the normal flash method wont work
#

Override the highlight method, as if the tables rows are set to have a background color,
this will override the table background color,  and the normal flash method wont work
Override the highlight method as if the tables rows are set to have a background color this will override the table background color and the normal flash method wont work
def highlight(set_or_clear )
        if set_or_clear == :set
            begin
                @original_border = @o.border.to_i
                if @o.border.to_i==1
                    @o.border = 2
                else
                    @o.border=1
                end
            rescue
                @original_border = nil
            end
        else
            begin 
                @o.border= @original_border unless @original_border == nil
                @original_border = nil
            rescue
            ensure
                @original_border = nil
            end
        end
        super    
    end
def highlight ( set_or_clear ) if set_or_clear == :set begin @original_border = @o . border . to_i if @o . border . to_i == 1 @o . border = 2 else @o . border = 1 end rescue @original_border = nil end else begin @o . border = @original_border unless @original_border == nil @original_border = nil rescue ensure @original_border = nil end end super end
Description:
Override the highlight method, as if the tables rows are set to have a background color,
this will override the table background color,  and the normal flash method wont work
Description : Override the highlight method as if the tables rows are set to have a background color this will override the table background color and the normal flash method wont work
# we could be here for a number of reasons...

set_or_clear
<not_specific>