S
S
Snewer2018-03-14 16:50:06
selenium
Snewer, 2018-03-14 16:50:06

How to stream video from selenium to browser?

Hello!
Is it possible to stream Selenium browser window video to a web application?
Now implemented by sending a bunch of screenshots of the window.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sundukov, 2018-04-27
@alekciy

At a minimum, you can view such a window through the xvfb virtual display. In particularly difficult cases, this helps to understand what the problem is. For example, when parsing Yandex wordstat, a background appeared that overlapped all the elements, and then disappeared. Only when watching the video it became clear and a solution was found. Looked like through x11vnc.
I mean, I did this, it definitely works and it’s not very difficult to do it. Now you just need to solve the problem of streaming video from xvfb to the browser. I did not do this, but as I understand it, the task comes down to the solution: xvfb-> ffmpeg-> html5. Those. you need to look not for viewing the selenium test in the browser, but for something like " xvfb video streaming ". Offhand something like this afterdesign.net/2016/02/07/recording-headless-sele...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question