class Gametel::Views::WebView
Public Instance Methods
clear_text(how, what)
click to toggle source
# File lib/gametel/views/web_view.rb, line 19 def clear_text(how, what) platform.clear_text_in_webview(how, what) end
click(how, what, index=0, scroll=true)
click to toggle source
# File lib/gametel/views/web_view.rb, line 5 def click(how, what, index=0, scroll=true) platform.click_on_webview(how, what, index, scroll) end
enter_text(how, what, text)
click to toggle source
# File lib/gametel/views/web_view.rb, line 9 def enter_text(how, what, text) platform.enter_text_in_webview(how, what, text) end
has_element?(how, what)
click to toggle source
# File lib/gametel/views/web_view.rb, line 29 def has_element?(how, what) platform.get_web_views_by(how, what, :target => :Brazenhead) not platform.last_json.empty? end
type_text(how, what, text, index=0)
click to toggle source
# File lib/gametel/views/web_view.rb, line 13 def type_text(how, what, text, index=0) find_element_by(how, what) do |device, by| device.type_text_in_web_element(by, text, index, :target => :Robotium) end end
wait_for_element(how, what, timeout=20, scroll=true)
click to toggle source
# File lib/gametel/views/web_view.rb, line 23 def wait_for_element(how, what, timeout=20, scroll=true) find_element_by(how, what) do |device, by| device.wait_for_web_element(by, timeout, scroll, :target => :Robotium) end end
Protected Instance Methods
find_element_by(how, what) { |device, 'by@@'| ... }
click to toggle source
# File lib/gametel/views/web_view.rb, line 36 def find_element_by(how, what) platform.chain_calls do |device| device.web_view_by(how, what, :variable => '@@by@@', :target => :Brazenhead) yield device, '@@by@@' end end