Method: Selenium#back?
- Defined in:
- lib/selenium/selenium.rb
#back?(args = {}) ⇒ Boolean
Public: Presses device Back button.
sleep_time - Integer total milliseconds to wait after pressing Back (default: 0).
Returns a Boolean true if successfully pressed Back, otherwise false.
365 366 367 368 369 |
# File 'lib/selenium/selenium.rb', line 365 def back?(args={}) ret = selenium_post('back', {}) sleep(args.fetch(:sleep_time, 0.sec)) !ret.nil? end |