browsers.json are not
downloaded.
browsers.json.
path key in
browsers.json must be "/", not
"/wd/hub". For "firefox" keep "/wd/hub".
Be careful, otherwise the browser will not start.
selenoid/vnc_chrome:128.0 it's written
selenoid/vnc_chrome_128.0.
docker-compose.yml (volumes).
browsers.json, UI doesn't connect to Selenoid, and
videos aren't written. Check directory mounting (paths specified
in volumes) - this is a common error.
video folder:
environment: OVERRIDE_VIDEO_OUTPUT_DIR: /root/selenoid_with_video/videoHere you can't use
${PWD} or ./video -
an absolute path is required! You can read more about this in the
official documentation:
aerokube.com/selenoid … video_recording.
docker pull selenoid/video-recorder:latest-release.
You do not need to add this image to
docker-compose.yml; it will start automatically, the
main thing is to download it once.
Configuration.headless = true;
Configuration.headless = false;If there's no screen, there's nothing to record.
localhost to access an
application running outside the container - specify the real host
IP address. Configuration.baseUrl = "http://192.168.0.127:3000";Incorrect example:
Configuration.baseUrl = "http://localhost:3000";Here you must use an IP address, not localhost, because this URL is substituted into the browser address bar opened in the Docker container, and if you specify localhost, the container will think that the application is also running inside the same container, but it is not running in it.