module Appium::Core::Base::Device::ScreenRecord::Command
def stop_and_save_recording_screen(file_path)
def stop_and_save_recording_screen(file_path) base64data = execute(:stop_recording_screen, {}, {}) File.open(file_path, 'wb') { |f| f << Base64.decode64(base64data) } end
def stop_recording_screen(remote_path: nil, user: nil, pass: nil, method: 'PUT',
def stop_recording_screen(remote_path: nil, user: nil, pass: nil, method: 'PUT', file_field_name: nil, form_fields: nil, headers: nil) option = ::Appium::Core::Base::Device::ScreenRecord.new( remote_path: remote_path, user: user, pass: pass, method: method, file_field_name: file_field_name, form_fields: form_fields, headers: headers ).upload_option params = option.empty? ? {} : { options: option } execute(:stop_recording_screen, {}, params) end