WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

driver.start_recording_screen not working with error : "status":9,"value":{"error":"unknown command","message":"Command not recognized}

Open dimag25 opened this issue 3 years ago • 6 comments

Hello, I'm trying to perform a screen record video with the appium driver, and got the following error:

self = <appium.webdriver.errorhandler.MobileErrorHandler object at 0x7ff7717c7c40>
response = {'status': 404, 'value': '{"status":9,"value":{"error":"unknown command","message":"Command not recognized: POST: /session/FA31EAB6-6D10-4777-8C99-51DEAD3FA8E5/appium/start_recording_screen"}}'}

my stack and versions: WindowApplicationDriver==1.2.1 Appium-python-client == 2.2.0 Selenium == 3.4.1 Mac Os

im using the following driver code:

desired_caps = {}
desired_caps["appTopLevelWindow"] = hex(int(newWindowHandle))
desired_caps["platformName"] = "Windows"
desired_caps["deviceName"] = vm_name
driver = webdriver.Remote(WindowsApplicationDriverUrl, desired_caps)

start recording failure appears in this line: driver.start_recording_screen()

any help?

dimag25 avatar Oct 20 '22 13:10 dimag25

it's not supported.

anunay1 avatar Oct 20 '22 14:10 anunay1

We're using this in our mstestv2 solution. https://ffmpeg.org/ Works well, also provides flexibility to add log files to video. Very handy to debug processes when video has the debug logs.

liljohnak avatar Oct 20 '22 14:10 liljohnak

@liljohnak thanks, we are using pytest with python3, is this tool working only with mstest?

dimag25 avatar Oct 20 '22 15:10 dimag25

Check this https://pythonprogramming.altervista.org/record-the-screen-with-ffmpeg-and-python/

anunay1 avatar Oct 20 '22 15:10 anunay1

thanks!

dimag25 avatar Oct 20 '22 16:10 dimag25

@liljohnak it might be a long shot but could you share briefly how you are using ffmpeg?

aajn88 avatar Dec 02 '24 19:12 aajn88