def progress(name, locator)
      define_method("#{name}") do
        platform.get_progress(locator)
      end
      define_method("#{name}_max") do
        platform.get_progress_max(locator)
      end
      define_method("#{name}_secondary") do
        platform.get_secondary_progress(locator)
      end
      define_method("#{name}=") do |value|
        platform.set_progress(locator, value)
      end
      define_method("#{name}_secondary=") do |value|
        platform.set_secondary_progress(locator, value)
      end
      define_method("#{name}_view") do
        Gametel::Views::Progress.new(platform, locator)
      end
    end
def progress(name, locator)
      define_method("#{name}") do
        platform.get_progress(locator)
      end
      define_method("#{name}_max") do
        platform.get_progress_max(locator)
      end
      define_method("#{name}_secondary") do
        platform.get_secondary_progress(locator)
      end
      define_method("#{name}=") do |value|
        platform.set_progress(locator, value)
      end
      define_method("#{name}_secondary=") do |value|
        platform.set_secondary_progress(locator, value)
      end
      define_method("#{name}_view") do
        Gametel::Views::Progress.new(platform, locator)
      end
    end
Generates methods to get an set the progress as well as
 the secondary progress
 @example
   spinner(:progress_item, :id => 'id_name_of_your_control')
   # will generate progress_item, progress_item=, progress_item_secondary, progress_item_secondary=

 @param  [Symbol]  the name used for the generated methods
 @param  [Hash]  locator indicating an id for how the progress bar is found.
 The only valid keys are:
   * :id
   * :index