vendor/gems/gems/firewatir-1.2.1/firewatir.rb
#
# Description:
#   Converts element type returned by JSSh like HTMLDivElement to its corresponding class in Firewatir.
#

Converts element type returned by JSSh like HTMLDivElement to its corresponding class in Firewatir.
Converts element type returned by JSSh like HTMLDivElement to its corresponding class in Firewatir .
def jssh2firewatir(candidate_class)
            hash = {
                'Div' => 'Div',
                'Button' => 'Button',
                'Frame' => 'Frame',
                'Span' => 'Span',
                'Paragraph' => 'P',
                'Label' => 'Label',
                'Form' => 'Form',
                'Image' => 'Image',
                'Table' => 'Table',
                'TableCell' => 'TableCell',
                'TableRow' => 'TableRow',
                'Select' => 'SelectList',
                'Link' => 'Link',
                'Anchor' => 'Link' 
            }
            hash.default = 'Element'
            hash[candidate_class]
        end
def jssh2firewatir ( candidate_class ) hash = { 'Div' => 'Div' , 'Button' => 'Button' , 'Frame' => 'Frame' , 'Span' => 'Span' , 'Paragraph' => 'P' , 'Label' => 'Label' , 'Form' => 'Form' , 'Image' => 'Image' , 'Table' => 'Table' , 'TableCell' => 'TableCell' , 'TableRow' => 'TableRow' , 'Select' => 'SelectList' , 'Link' => 'Link' , 'Anchor' => 'Link' } hash . default = 'Element' hash [ candidate_class ] end
Description:
Converts element type returned by JSSh like HTMLDivElement to its corresponding class in Firewatir.
Description : Converts element type returned by JSSh like HTMLDivElement to its corresponding class in Firewatir .
# FIXME is this right?
 #'Option' => 'Option' #Option uses a different constructor

candidate_class
<not_specific>