code: def button(name, locator)
        define_method("#{name}") do |&block|
          adapter.button(locator).click &block
        end
        define_method("#{name}_value") do
          adapter.button(locator).value
        end
        define_method("#{name}_view") do
          adapter.button(locator).view
        end
      end
docs: Generates methods to click on a button as well as get the value of
   the button text
  
   @example
     button(:close, :value => '&Close')
     # will generate 'close' and 'close_value' methods
  
   @param  [String]  the name used for the generated methods
   @param  [Hash]  locator for how the button is found