lib/mohawk/accessors.rb
def combo_box(name, locator)
      define_method("#{name}") do
        adapter.combo(locator).value
      end
      define_method("clear_#{name}") do |item|
        adapter.combo(locator).clear item
      end
      define_method("#{name}_selections") do
        adapter.combo(locator).values
      end

      define_method("#{name}=") do |item|
        adapter.combo(locator).set item
      end
      alias_method "select_#{name}", "#{name}="

      define_method("#{name}_options") do
        adapter.combo(locator).options
      end
      define_method("#{name}_view") do
        adapter.combo(locator).view
      end
    end
def combo_box(name, locator)
      define_method("#{name}") do
        adapter.combo(locator).value
      end
      define_method("clear_#{name}") do |item|
        adapter.combo(locator).clear item
      end
      define_method("#{name}_selections") do
        adapter.combo(locator).values
      end

      define_method("#{name}=") do |item|
        adapter.combo(locator).set item
      end
      alias_method "select_#{name}", "#{name}="

      define_method("#{name}_options") do
        adapter.combo(locator).options
      end
      define_method("#{name}_view") do
        adapter.combo(locator).view
      end
    end
Generates methods to get the value of a combo box, set the selected
 item by both index and value as well as to see the available options

 @example
   combo_box(:status, :id => 'statusComboBox')
   # will generate 'status', 'status_selections', 'status=', 'select_status','clear_status' and 'status_options' methods

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

 === Aliases
 * combobox
 * dropdown / drop_down
 * select_list