Module: Appium::Core::Windows::Device

Extended by:
Forwardable
Defined in:
lib/appium_lib_core/windows/device.rb,
lib/appium_lib_core/windows/device/screen.rb,
lib/appium_lib_core/windows/device/app_management.rb

Defined Under Namespace

Modules: AppManagement, Screen

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(_mod) ⇒ Object



80
81
82
83
# File 'lib/appium_lib_core/windows/device.rb', line 80

def extended(_mod)
  Screen.add_methods
  AppManagement.add_methods
end

Instance Method Details

#start_recording_screen(remote_path: nil, user: nil, pass: nil, method: 'PUT', force_restart: nil, time_limit: nil, fps: nil, preset: nil, video_filter: nil, capture_clicks: nil, capture_cursor: nil, audio_input: nil) ⇒ String

Record the display in background while the automated test is running. This method requires FFMPEG (www.ffmpeg.org/download.html) to be installed and present in PATH. The resulting video uses H264 codec and is ready to be played by media players built-in into web browsers.

Examples:


@driver.start_recording_screen
@driver.start_recording_screen video_filter: 'scale=ifnot(gte(iw\,1024)\,iw\,1024):-2'
@driver.start_recording_screen capture_cursor: true, capture_clicks: true, time_limit: '260'

Since:

  • Appium 1.18.0



# File 'lib/appium_lib_core/windows/device.rb', line 26