airtest.core.android.recorder module

class Recorder(adb)[source]

Bases: airtest.core.android.yosemite.Yosemite

Screen recorder

start_recording(**kwargs)
stop_recording(output='screen.mp4', is_interrupted=False)[source]

Stop screen recording

Parameters:
  • output – default file is screen.mp4
  • is_interrupted – True or False. Stop only, no pulling recorded file from device.
Raises:

AirtestError – if recording was not started before

Returns:

None

pull_last_recording_file(output='screen.mp4')[source]

Pull the latest recording file from device. Error raises if no recording files on device.

Parameters:output – default file is screen.mp4