def checkbox(name, locator)
      define_method("#{name}") do
        adapter.checkbox(locator).checked?
      end
      define_method("#{name}=") do |should_check|
        adapter.checkbox(locator).set_check should_check
      end
      define_method("#{name}_value") do
        adapter.checkbox(locator).value
      end
      define_method("#{name}_view") do
        adapter.checkbox(locator).view
      end
    end
def checkbox(name, locator)
      define_method("#{name}") do
        adapter.checkbox(locator).checked?
      end
      define_method("#{name}=") do |should_check|
        adapter.checkbox(locator).set_check should_check
      end
      define_method("#{name}_value") do
        adapter.checkbox(locator).value
      end
      define_method("#{name}_view") do
        adapter.checkbox(locator).view
      end
    end
Generates methods to get/set the value of a checkbox as well as
 to get the text value of the control

 @example
   checkbox(:include, :id => 'checkBoxId')
   # will generate 'include', 'include=' and 'include_value' methods

 @param  [String]  the name used for the generated methods
 @param  [Hash]  locator for how the checkbox is found