module Appom
Constants
- VERSION
Attributes
driver[RW]
max_wait_time[RW]
Public Class Methods
configure() { |self| ... }
click to toggle source
Configure appom
# File lib/appom.rb, line 24 def configure yield self end
register_driver() { || ... }
click to toggle source
Register a new appium driver for Appom
. @return [Appium::Driver] A appium driver instance
# File lib/appom.rb, line 30 def register_driver @driver = yield setup_exit_handler end
reset_driver()
click to toggle source
Reset the device, relaunching the application.
# File lib/appom.rb, line 41 def reset_driver @driver.reset end
setup_exit_handler()
click to toggle source
After run all scenario and exit we will quit driver to close application under test
# File lib/appom.rb, line 46 def setup_exit_handler main = Process.pid at_exit do @driver.driver_quit if Process.pid == main end end
start_driver()
click to toggle source
Creates a new global driver and quits the old one if it exists.
# File lib/appom.rb, line 36 def start_driver @driver.start_driver end