Module: WDA::Debug
- Included in:
- WDA
- Defined in:
- lib/wda_lib/debug.rb
Instance Method Summary collapse
- #get_source ⇒ Object
- #get_window(window_number = 0) ⇒ Object
- #get_window_statusbar ⇒ Object
-
#source(session_id = nil, accessible = true) ⇒ Object
Get all elements on the screen.
Instance Method Details
#get_source ⇒ Object
13 14 15 |
# File 'lib/wda_lib/debug.rb', line 13 def get_source get(@base_url + '/source')['value']['tree']['children'] end |
#get_window(window_number = 0) ⇒ Object
21 22 23 |
# File 'lib/wda_lib/debug.rb', line 21 def get_window(window_number = 0) get(@base_url + '/source')['value']['tree']['children'][window_number] end |
#get_window_statusbar ⇒ Object
17 18 19 |
# File 'lib/wda_lib/debug.rb', line 17 def get(@base_url + '/source')['value']['tree']['children'][2] end |
#source(session_id = nil, accessible = true) ⇒ Object
Get all elements on the screen
5 6 7 8 9 10 11 |
# File 'lib/wda_lib/debug.rb', line 5 def source(session_id = nil, accessible = true) if session_id.nil? post(@base_url + '/source', { accessible: accessible }) else post '/source', { accessible: accessible } end end |