Module: Gametel::Webview

Includes:
Webviewable
Defined in:
lib/gametel/webview.rb,
lib/gametel/webview/accessors.rb

Defined Under Namespace

Modules: Accessors

Constant Summary

Constants included from Webviewable

Gametel::Webviewable::ROBOTIUM_LEFT, Gametel::Webviewable::ROBOTIUM_RIGHT

Instance Attribute Summary

Attributes included from Webviewable

#platform

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Webviewable

#click_on_text, #has_text?, #initialize, #scroll_down, #scroll_left, #scroll_right, #scroll_up, #wait_for_text

Class Method Details

.included(cls) ⇒ Object



8
9
10
# File 'lib/gametel/webview.rb', line 8

def self.included(cls)
  cls.extend Gametel::Webview::Accessors
end

Instance Method Details

#has_element?(how, what) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
16
# File 'lib/gametel/webview.rb', line 13

def has_element?(how, what)
  platform.get_web_views_by(how, what, :target => :Brazenhead)
  not platform.last_json.empty?
end