Sha256: 87f7136384d0eb6f28de5a666cb87a21c01fc537124ac0d6108e5c0659986690

Contents?: true

Size: 1.19 KB

Versions: 15

Compression:

Stored size: 1.19 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: nil, force_restart: nil,
                                           video_type: 'mp4', time_limit: '180', video_quality: 'medium')
                  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

                  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

15 entries across 15 versions & 1 rubygems

Version Path
appium_lib_core-2.0.6 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.0.5 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.0.4 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.0.3 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.0.2 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.0.1 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-2.0.0 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-1.9.2 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-1.9.1 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-1.9.0 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-1.8.4 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-1.8.3 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-1.8.2 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-1.8.1 lib/appium_lib_core/ios/xcuitest/device/screen.rb
appium_lib_core-1.8.0 lib/appium_lib_core/ios/xcuitest/device/screen.rb