module Gametel::Platforms::Spinner

Public Instance Methods

get_spinner_value_by_id(id) click to toggle source
# File lib/gametel/platforms/brazenhead/spinner.rb, line 7
def get_spinner_value_by_id(id)
  get_view_by_id(id) do |device|
    device.get_selected_item
    device.to_string
  end
end
get_spinner_value_by_index(index) click to toggle source
# File lib/gametel/platforms/brazenhead/spinner.rb, line 14
def get_spinner_value_by_index(index)
  get_view_by_index('android.widget.Spinner', index) do |device|
    device.get_selected_item
    device.to_string
  end
end
select_spinner_value_by_id(id, index) click to toggle source
# File lib/gametel/platforms/brazenhead/spinner.rb, line 21
def select_spinner_value_by_id(id, index)
  chain_calls do |device|
    device.id_from_name id, :variable => '@@the_id@@', :target => 'Brazenhead'
    device.press_spinner_item_by_id '@@the_id@@', index, :target => 'Brazenhead'
  end
end