Sha256: d8f49fe74501a722b54291036a99276eea6bd1d4bf6c6e1b68fef63b36cb0dd2

Contents?: true

Size: 587 Bytes

Versions: 2

Compression:

Stored size: 587 Bytes

Contents

require_relative '../client'

module TrueAutomation
  module Driver
    class AppiumLib < Appium::Core::Driver
      def initialize(**opts)
        @ta_client = TrueAutomation::Client.new
        @remote = ''
        super(**opts)
      end

      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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
true_automation-0.6.1 lib/true_automation/driver/appium_lib.rb
true_automation-0.6.0 lib/true_automation/driver/appium_lib.rb