问题描述
使用 python 绑定 selenium3 webdriver 进行测试自动化,使用 castro 记录执行步骤,但在 Windows 7 x64 上失败.
Using python binding selenium3 webdriver for test automation, to record execution steps using castro but it is failing on Windows 7 x64.
是否有任何其他库或模块可用于记录目的
Is there any other library or module which can be used for recording purpose
带有 castro 的代码
Code with castro
但它会在我的 Windows7 x64 上引发错误
But it throws error on my Windows7 x64
推荐答案
我不推荐使用 castro.它真的过时了,我已经尝试在自己的测试中使用它并且确实让它运行但它太不稳定了.
I do not recommend using castro. It's really outdated, I've tried using it in my own tests and did get it running but it was too unstable.
我目前正在使用 (屏幕录制软件),它就像一个魅力.它允许您设置帧率、分辨率、比特率以及选择不同的视频编解码器.
I'm currently using ffmpeg together with screen-capture-recorder (screen recording software) and it works like a charm. It allows you to set the framerate, resolution, bitrate as well as chose different video codec.
代码如下所示:
这篇关于如何在window x64上的python中记录selenium webdriver测试执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!