def view(name, locator)
      define_method(name) do
        platform.click_view(locator)
      end
      define_method("#{name}_view") do
        Gametel::Views::View.new(platform, locator)
      end
    end
def view(name, locator)
      define_method(name) do
        platform.click_view(locator)
      end
      define_method("#{name}_view") do
        Gametel::Views::View.new(platform, locator)
      end
    end
Generates one method to click a view.
 @example
   view(:clickable_text, :id => 'id_name_of_your_control')
   # will generate 'clickable_text' method

 @param  [Symbol]  the name used for the generated methods
 @param  [Hash]  locator indicating an id for how the view is found.
 The only valid keys are:
   * :id
   * :text
   * :class (:index => 0 implied)