You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem:
When running a simple test (as shown below) against a fast loading page page such as https://example.org, the recorded video file will be empty. It will just have 262 bytes and when I open it in VLC, there are no playable streams.
When waiting 2 seconds before finishing the test (as shown in the workaround below), the recorded video file contains the expected content: a browser page displaying https://example.org.
If you can't reproduce it with example.org, it should be reproducable with a local default nginx installation (e.g. started with docker). With local nginx, I observed the same behavior.
I also experienced this issue but I think it cannot be solved. I mean, the Docker containers (browser and recorder) need to start. If the elapsed time between the start and the shutdown is too small, the recorder is not able to record properly (the 262 bytes you said).
That's a pity. It seems that the testcontainers project solved a similar issue: testcontainers/testcontainers-java#466. But maybe it has a different root cause. Unluckily, I currently don't have time to dig deeper into the topic.
Description of the problem:
When running a simple test (as shown below) against a fast loading page page such as https://example.org, the recorded video file will be empty. It will just have 262 bytes and when I open it in VLC, there are no playable streams.
When waiting 2 seconds before finishing the test (as shown in the workaround below), the recorded video file contains the expected content: a browser page displaying https://example.org.
If you can't reproduce it with example.org, it should be reproducable with a local default nginx installation (e.g. started with docker). With local nginx, I observed the same behavior.
Btw, I could not reproduce this issue with the url used in lots of your examples: https://bonigarcia.dev/selenium-webdriver-java/
Browser and version: Latest version of Chrome in Docker.
Operating system: 20.04.2-Ubuntu, x86_64
Selenium-Jupiter version: 4.0.1
Selenium-Jupiter use:
Code which produces empty video file:
Workaround code which produces non-empty video file:
Selenium-Jupiter traces:
Error trace: none
The text was updated successfully, but these errors were encountered: