Sha256: 34d99c84f56fed40fe0a6d4e30009a7b22b36bf0b425257c92ba5a5f23add6ee
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
require 'brazenhead' module Gametel module Platforms module Text def get_text_by_id(id) chain_calls do |device| device.id_from_name(id, :target => 'Brazenhead', :variable => '@@view_id@@') device.get_view('@@view_id@@', :target => 'Robotium') device.get_text device.to_string end end def enter_text_by_id(id, text) chain_calls do |device| device.id_from_name(id, :target => 'Brazenhead', :variable => '@@view_id@@') device.get_view('@@view_id@@', :target => 'Robotium', :variable => '@@the_view@@') 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) chain_calls do |device| device.id_from_name(id, :target => 'Brazenhead', :variable => '@@view_id@@') device.get_view('@@view_id@@', :target => 'Robotium', :variable => '@@the_view@@') device.clear_edit_text('@@the_view@@', :target => 'Robotium') end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gametel-0.5 | lib/gametel/platforms/brazenhead/text.rb |
gametel-0.4 | lib/gametel/platforms/brazenhead/text.rb |