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