def text(name, locator)
      define_method("#{name}") do
        platform.get_text(locator)
      end
      define_method("#{name}=") do |value|
        platform.enter_text(value, locator)
      end
      define_method("clear_#{name}") do
        platform.clear_text(locator)
      end
      define_method("#{name}_view") do
        Gametel::Views::Text.new(platform, locator)
      end
    end
def text(name, locator)
      define_method("#{name}") do
        platform.get_text(locator)
      end
      define_method("#{name}=") do |value|
        platform.enter_text(value, locator)
      end
      define_method("clear_#{name}") do
        platform.clear_text(locator)
      end
      define_method("#{name}_view") do
        Gametel::Views::Text.new(platform, locator)
      end
    end
Generates methods to enter text into a text field, clear the text
 field, get the hint as well as the description

 @example
   text(:first_name, :index => 0)
   # will generate 'first_name', 'first_name=', 'clear_first_name', 'first_name_hint' and 'first_name_description' methods

 @param  [Symbol]  the name used for the generated methods
 @param  [Hash]  locator for how the text is found  The valid
 keys are:
  * :id
  * :index