简体   繁体   中英

Record selenium tests in headless mode (Java)

I need to record selenium tests in chrome using headless mode but I have been finding it impossible.

To sum up, the application that I am working with is a Java application with its frontend and backend that the main function is to do selenium testing. Even though it has a lot more features. I only want to record the tests from when they start until they finish.

So far I have tried recording with the library WebDriverManager following this example but it did not work probably because it only works with a headful navigator.

I have seen the following option that uses the library ffmpeg but it says that it works in docker and I need to use it in windows/linux and as I said before, my application it is not just a test, it also has a UI with different features.

Do you know about more possibilities to video-record my selenium tests in headless mode?

If you use headless mode only because you don't have a video device in Linux, then you can try Xvfb

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM