module Gametel::Platforms::Webview

Public Instance Methods

clear_text_in_webview(how, what) click to toggle source
# File lib/gametel/platforms/brazenhead/webview.rb, line 19
def clear_text_in_webview(how, what)
  find_web_element_by(how, what) do |device, by|
    device.clear_text_in_web_element(by, :target => :Robotium)
  end
end
click_on_webview(how, what, index=0, scroll=true) click to toggle source
# File lib/gametel/platforms/brazenhead/webview.rb, line 7
def click_on_webview(how, what, index=0, scroll=true)
  find_web_element_by(how, what) do |device, by|
    device.click_on_web_element(by, index, scroll, :target => :Robotium)
  end
end
enter_text_in_webview(how, what, text) click to toggle source
# File lib/gametel/platforms/brazenhead/webview.rb, line 13
def enter_text_in_webview(how, what, text)
  find_web_element_by(how, what) do |device, by|
    device.enter_text_in_web_element(by, text, :target => :Robotium)
  end
end
find_web_element_by(how, what) { |device, 'by@@'| ... } click to toggle source
# File lib/gametel/platforms/brazenhead/webview.rb, line 25
def find_web_element_by(how, what)
  chain_calls do |device|
    device.web_view_by(how, what, :variable => '@@by@@', :target => :Brazenhead)
    yield device, '@@by@@'
  end
end