Class: TrueAutomation::Driver::AppiumLib
- Inherits:
-
Appium::Core::Driver
- Object
- Appium::Core::Driver
- TrueAutomation::Driver::AppiumLib
- Defined in:
- lib/true_automation/driver/appium_lib.rb
Instance Method Summary collapse
-
#initialize(**opts) ⇒ AppiumLib
constructor
A new instance of AppiumLib.
- #start_driver(**opts) ⇒ Object
Constructor Details
#initialize(**opts) ⇒ AppiumLib
Returns a new instance of AppiumLib.
6 7 8 9 10 |
# File 'lib/true_automation/driver/appium_lib.rb', line 6 def initialize(**opts) @ta_client = TrueAutomation::Client.new @remote = '' super(**opts) end |
Instance Method Details
#start_driver(**opts) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/true_automation/driver/appium_lib.rb', line 12 def start_driver(**opts) @ta_client.start(port: @port, remote: @remote, ta_debug: @ta_debug, driver: 'appium') @ta_client.wait_until_start at_exit do @ta_client.stop end super(**opts) end |