Sha256: ad272e996eab7530bf6ca38abd7730672c2e6a3699d6d7c0b47ad99cec13ba85

Contents?: true

Size: 1.42 KB

Versions: 11

Compression:

Stored size: 1.42 KB

Contents

module Appium
  module Core
    module Ios
      module Xcuitest
        module Device
          module Screen
            def self.add_methods
              ::Appium::Core::Device.add_endpoint_method(:start_recording_screen) do
                # rubocop:disable Metrics/ParameterLists
                def start_recording_screen(remote_path: nil, user: nil, pass: nil, method: 'PUT', force_restart: nil,
                                           video_type: 'mjpeg', time_limit: '180', video_quality: 'medium',
                                           video_fps: nil, video_scale: nil)
                  option = ::Appium::Core::Base::Device::ScreenRecord.new(
                    remote_path: remote_path, user: user, pass: pass, method: method, force_restart: force_restart
                  ).upload_option

                  option[:videoType] = video_type
                  option[:timeLimit] = time_limit
                  option[:videoQuality] = video_quality

                  option[:videoFps] = video_fps unless video_fps.nil?
                  option[:videoScale] = video_scale unless video_scale.nil?

                  execute(:start_recording_screen, {}, { options: option })
                end
                # rubocop:enable Metrics/ParameterLists
              end
            end
          end # module Screen
        end # module Device
      end # module Xcuitest
    end # module Ios
  end # module Core
end # module Appium

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
appium_lib_core-3.0.2 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-3.0.1 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-3.0.0 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.3.4 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.3.3 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.3.2 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.3.1 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.3.0 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.2.2 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.2.1 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.2.0 lib/appium_lib_core/ios/xcuitest/device/screen.rb