Sha256: 4f0da73cd53420da250938fd394317dab0d5d63c435e7924a48190e5051eaefb

Contents?: true

Size: 975 Bytes

Versions: 11

Compression:

Stored size: 975 Bytes

Contents

require 'brazenhead'

module Gametel
  module Platforms
    module Text

      def get_text_by_id(id)
        get_view_by_id(id) do |device|
          device.get_text
          device.to_string
        end
      end

      def enter_text_by_id(id, text)
        get_view_by_id(id) do |device|
          device.enter_text '@@the_view@@', text, :target => 'Robotium'
        end
      end

      def enter_text_by_index(index, text)
        chain_calls do |device|
          device.enter_text(index, text)
        end
      end

      def clear_text_by_id(id)
        get_view_by_id(id) do |device|
          device.clear_edit_text('@@the_view@@', :target => 'Robotium')
        end
      end

      def get_text_hint_by_id(id)
        get_view_by_id(id) do |device|
          device.get_hint
        end
      end

      def get_text_description_by_id(id)
        get_view_by_id(id) do |device|
          device.get_content_description
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gametel-0.5.9.1 lib/gametel/platforms/brazenhead/text.rb
gametel-0.5.9 lib/gametel/platforms/brazenhead/text.rb
gametel-0.5.8.1 lib/gametel/platforms/brazenhead/text.rb
gametel-0.5.8 lib/gametel/platforms/brazenhead/text.rb
gametel-0.5.7 lib/gametel/platforms/brazenhead/text.rb
gametel-0.5.6 lib/gametel/platforms/brazenhead/text.rb
gametel-0.5.5 lib/gametel/platforms/brazenhead/text.rb
gametel-0.5.4 lib/gametel/platforms/brazenhead/text.rb
gametel-0.5.3 lib/gametel/platforms/brazenhead/text.rb
gametel-0.5.2 lib/gametel/platforms/brazenhead/text.rb
gametel-0.5.1 lib/gametel/platforms/brazenhead/text.rb