Sha256: 7c396ce896bd10225da2005faa2ba45374f7be522003a84040ea46b3a65c0998

Contents?: true

Size: 709 Bytes

Versions: 12

Compression:

Stored size: 709 Bytes

Contents

module Appium
  module Device
    extend Forwardable

    class << self
      def extended(_mod)
        add_touch_actions
      end

      private

      def add_touch_actions
        actions = Appium::TouchAction::COMPLEX_ACTIONS
        actions.each do |method|
          ::Appium::Core::Device.delegate_from_appium_driver(method, Appium::TouchAction)
        end

        # To keep compatibility
        # pinch and zoom are defined in Appium::MultiTouch.
        ::Appium::Core::Device.delegate_from_appium_driver(:pinch, Appium::MultiTouch)
        ::Appium::Core::Device.delegate_from_appium_driver(:zoom, Appium::MultiTouch)
      end
    end # class << self
  end # module Device
end # module Appium

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
appium_lib-9.11.0 lib/appium_lib/common/device.rb
appium_lib-9.10.0 lib/appium_lib/common/device.rb
appium_lib-9.9.2 lib/appium_lib/common/device.rb
appium_lib-9.9.1 lib/appium_lib/common/device.rb
appium_lib-9.9.0 lib/appium_lib/common/device.rb
appium_lib-9.8.5 lib/appium_lib/common/device.rb
appium_lib-9.8.4 lib/appium_lib/common/device.rb
appium_lib-9.8.3 lib/appium_lib/common/device.rb
appium_lib-9.8.2 lib/appium_lib/common/device.rb
appium_lib-9.8.1 lib/appium_lib/common/device.rb
appium_lib-9.7.5 lib/appium_lib/common/device.rb
appium_lib-9.7.4 lib/appium_lib/common/device.rb