Module: Appium::Core::Base::Device::ScreenRecord::Command
- Included in:
- Bridge::MJSONWP, Bridge::W3C
- Defined in:
- lib/appium_lib_core/common/device/screen_record.rb
Instance Method Summary collapse
- #stop_and_save_recording_screen(file_path) ⇒ Object
- #stop_recording_screen(remote_path: nil, user: nil, pass: nil, method: 'PUT') ⇒ Object
Instance Method Details
#stop_and_save_recording_screen(file_path) ⇒ Object
60 61 62 63 |
# File 'lib/appium_lib_core/common/device/screen_record.rb', line 60 def stop_and_save_recording_screen(file_path) base64data = execute(:stop_recording_screen, {}, {}) File.open(file_path, 'wb') { |f| f << Base64.decode64(base64data) } end |
#stop_recording_screen(remote_path: nil, user: nil, pass: nil, method: 'PUT') ⇒ Object
50 51 52 53 54 55 56 57 58 |
# File 'lib/appium_lib_core/common/device/screen_record.rb', line 50 def stop_recording_screen(remote_path: nil, user: nil, pass: nil, method: 'PUT') option = ::Appium::Core::Base::Device::ScreenRecord.new( remote_path: remote_path, user: user, pass: pass, method: method ).upload_option params = option.empty? ? {} : { options: option } execute(:stop_recording_screen, {}, params) end |