vendor/gems/gems/firewatir-1.2.1/firewatir.rb
#
# Description:
#   Get the class name for element of input type depending upon its type like checkbox, radio etc.
#

Get the class name for element of input type depending upon its type like checkbox, radio etc.
Get the class name for element of input type depending upon its type like checkbox radio etc .
def input_class(input_type)
            hash = {
                'select-one' => 'SelectList',
                'select-multiple' => 'SelectList',
                'text' => 'TextField',
                'password' => 'TextField',
                'textarea' => 'TextField',
                'file' => 'FileField',
                'checkbox' => 'CheckBox',
                'radio' => 'Radio',
                'reset' => 'Button',
                'button' => 'Button',
                'submit' => 'Button',
                'image' => 'Button'
            }
            hash.default = 'Element'
            hash[input_type]
        end
def input_class ( input_type ) hash = { 'select-one' => 'SelectList' , 'select-multiple' => 'SelectList' , 'text' => 'TextField' , 'password' => 'TextField' , 'textarea' => 'TextField' , 'file' => 'FileField' , 'checkbox' => 'CheckBox' , 'radio' => 'Radio' , 'reset' => 'Button' , 'button' => 'Button' , 'submit' => 'Button' , 'image' => 'Button' } hash . default = 'Element' hash [ input_type ] end
Description:
Get the class name for element of input type depending upon its type like checkbox, radio etc.
Description : Get the class name for element of input type depending upon its type like checkbox radio etc .
# TODO when there's no type, it's a TextField

input_type
<not_specific>