def checkbox(name, locator)
      define_method(name) do
        platform.click_checkbox(locator)
      end
      define_method("#{name}_checked?") do
        Gametel::Views::CheckBox.new(platform, locator).checked?
      end
      define_method("#{name}_view") do
        Gametel::Views::CheckBox.new(platform, locator)
      end
    end
def checkbox(name, locator)
      define_method(name) do
        platform.click_checkbox(locator)
      end
      define_method("#{name}_checked?") do
        Gametel::Views::CheckBox.new(platform, locator).checked?
      end
      define_method("#{name}_view") do
        Gametel::Views::CheckBox.new(platform, locator)
      end
    end
Generates one method to click a checkbox.

 @example
   checkbox(:enable, :text => 'Enable')
   # will generate 'enable' method

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