If you need to record a video of your Robot run, you can try using screen_recorder.py -library. It may be useful e.g. for debugging failed Robot runs.
An example Robot and
screen_recorder.py -library are available in GitHub - robocorp/example-screen-recording
To use it with your own Robot, you must copy
screen_recorder.py to the Robot directory and add
opencv dependencies to
channels: - defaults - conda-forge dependencies: - python=3.7.5 - pip=20.1 - python-mss - numpy - opencv - pip: - rpaframework==7.*
tasks.robot contains an example of using video recording. It stores the recording to the Robocorp Cloud. It is easy to modify it to store the video only if Robot Framework execution FAILs - for debugging purposes.
Library should work in Windows, MacOS and Linux. NOTE that recording does not work with Robocorp Cloud container as it doesn’t have a desktop. Recording would require a container with xvfb or similar.