lib/gametel/platforms/brazenhead/spinner.rb in gametel-0.5 vs lib/gametel/platforms/brazenhead/spinner.rb in gametel-0.5.1

- old
+ new

@@ -3,12 +3,17 @@ module Gametel module Platforms module Spinner def get_spinner_value_by_id(id) - chain_calls do |device| - device.id_from_name(id, :target => 'Brazenhead', :variable => '@@view_id@@') - device.get_view('@@view_id@@', :target => 'Robotium') + get_view_by_id(id) do |device| + device.get_selected_item + device.to_string + end + end + + 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