Module: WDA::Custome
- Included in:
- WDA
- Defined in:
- lib/wda_lib/custom.rb
Instance Method Summary collapse
-
#homescreen ⇒ Object
Go to home screen.
-
#pause(duration) ⇒ Object
Deactivate application for given time.
-
#springboard ⇒ Object
Same as homescreen, go to home screen.
-
#timeout(duraiton) ⇒ void
Timeout(without Session).
-
#timeout_in_session(duraiton) ⇒ void
Timeout(with Session).
Instance Method Details
#homescreen ⇒ Object
Go to home screen
5 6 7 |
# File 'lib/wda_lib/custom.rb', line 5 def homescreen post(@base_url + '/homescreen') end |
#pause(duration) ⇒ Object
Deactivate application for given time
15 16 17 |
# File 'lib/wda_lib/custom.rb', line 15 def pause(duration) post '/deactivateApp', { duration: duration } end |
#springboard ⇒ Object
Same as homescreen, go to home screen
10 11 12 |
# File 'lib/wda_lib/custom.rb', line 10 def springboard homescreen end |
#timeout(duraiton) ⇒ void
This method returns an undefined value.
Timeout(without Session)
22 23 24 |
# File 'lib/wda_lib/custom.rb', line 22 def timeout(duraiton) post(@base_url + '/timeout', { type: 'xctevent', ms: duration }) end |
#timeout_in_session(duraiton) ⇒ void
This method returns an undefined value.
Timeout(with Session)
29 30 31 |
# File 'lib/wda_lib/custom.rb', line 29 def timeout_in_session(duraiton) post '/timeout', { type: 'xctevent', ms: duration } end |