Sha256: ecda17e6b28a9452c9532a988ff602f6ec8afecd5b43c95daee7f184ea669004

Contents?: true

Size: 551 Bytes

Versions: 14

Compression:

Stored size: 551 Bytes

Contents

module ::Appium
  module Core
    class Element
      # sets the testa appium driver instance for the current phone
      def self.set_driver(driver, udid)
        udid = "unknown" if udid.nil?
        @@drivers ||= {}
        @@drivers[udid] = driver
      end

      # @return [TestaAppiumDriver::Driver] testa appium driver instance for the current phone
      def get_driver
        udid = @bridge.capabilities.instance_variable_get(:@capabilities)["udid"]
        udid = "unknown" if udid.nil?
        @@drivers[udid]
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
testa_appium_driver-0.1.32 ./lib/testa_appium_driver/common/selenium_element.rb
testa_appium_driver-0.1.31 ./lib/testa_appium_driver/common/selenium_element.rb
testa_appium_driver-0.1.30 ./lib/testa_appium_driver/common/selenium_element.rb
testa_appium_driver-0.1.28 lib/testa_appium_driver/common/selenium_element.rb
testa_appium_driver-0.1.27 lib/testa_appium_driver/common/selenium_element.rb
testa_appium_driver-0.1.26 lib/testa_appium_driver/common/selenium_element.rb
testa_appium_driver-0.1.25 lib/testa_appium_driver/common/selenium_element.rb
testa_appium_driver-0.1.24 lib/testa_appium_driver/common/selenium_element.rb
testa_appium_driver-0.1.22 lib/testa_appium_driver/common/selenium_element.rb
testa_appium_driver-0.1.18 lib/testa_appium_driver/common/selenium_element.rb
testa_appium_driver-0.1.17 lib/testa_appium_driver/common/selenium_element.rb
testa_appium_driver-0.1.16 lib/testa_appium_driver/common/selenium_element.rb
testa_appium_driver-0.1.15 lib/testa_appium_driver/common/selenium_element.rb
testa_appium_driver-0.1.14 lib/testa_appium_driver/common/selenium_element.rb