selenium - Selenoid: recording video of a running session -
i'm using selenoid live browser screen functionality debug tests. recommended way capture browser screen video?
selenoid supports showing video via vnc. need grab respective port. here 1 possible way record video vnc.
requirements:
- selenoid must running in bin (not in docker) overwise mapped ports
null
. - docker apis should exposed outside world. (http://www.virtuallyghetto.com/2014/07/quick-tip-how-to-enable-docker-remote-api.html)
how that. 1 possible solution use vnc2flv script.
download script:
$ wget https://pypi.python.org/packages/1e/8e/40c71faa24e19dab555eeb25d6c07efbc503e98b0344f0b4c3131f59947f/vnc2flv-20100207.tar.gz\#md5\=8492e46496e187b49fe5569b5639804e
unpack archive:
$ tar zxf vnc2flv-20100207.tar.gz
install script:
$ python setup.py install --prefix=/usr/local
record video: docker container id via selenoid
/status
, find docker commands port mapped container port5900
(the vnc port). type:flvrec.py -p <filename_for_password_file> -o <output_video_filename> <hub_host> <the_vnc_port>
, e.g.flvrec.py -p password.txt -o /tmp/selenoid_videos/gimme_love.flv 172.31.11.135 32774
.saved video file can found in
/tmp/selenoid_videos/gimme_love.flv
.
Comments
Post a Comment