Python selenium video recording controller to be used with pczerkas/standalone-chrome-debug
1.8K
Start recording:
video_id=$(curl -XPOST http://192.168.1.1:9000/start -d '{"host":"selenium","display":"99","file_name":"test.mp4"}' |jq -r '.video_id')
Stop recording:
curl -v -XPOST http://192.168.1.1:9000/stop -d '{"video_id":"${video_id}"}'
Replace hosts and ports as configured in your infrastructure.
Docker-compose usage:
selenium-video:
image: pczerkas/selenium-video:1.0.3
environment:
- CONTROLLER_PORT=9000
- MAX_MINUTES=3
volumes:
- ./some/path/to/videos:/videos
healthcheck:
test: /healthcheck.sh
interval: 30s
timeout: 10s
retries: 1
start_period: 20s
Content type
Image
Digest
Size
111.3 MB
Last updated
over 4 years ago
docker pull pczerkas/selenium-video