Sha256: 0a33ee031526418fe0993fecc750d6d83df5dd6deeaacad75e6e4dbe157576f6

Contents?: true

Size: 736 Bytes

Versions: 15

Compression:

Stored size: 736 Bytes

Contents

require 'brazenhead'

module Gametel
  module Platforms
    module Spinner
      
      def get_spinner_value_by_id(id)
        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

      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
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gametel-0.8 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.7 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.6 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.5.9.3 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.5.9.2 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.5.9.1 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.5.9 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.5.8.1 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.5.8 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.5.7 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.5.6 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.5.5 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.5.4 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.5.3 lib/gametel/platforms/brazenhead/spinner.rb
gametel-0.5.2 lib/gametel/platforms/brazenhead/spinner.rb