This project provides:
- A Docker container with Chrome browser accessible via VNC and remote debugging
- A TypeScript Playwright script that connects to the remote Chrome instance
# Build and start the container
docker-compose up -d
# Check if the container is running
docker-compose ps
npm install
Make sure the Docker container is running first, then:
npm start
The script will:
- Connect to the Chrome browser running in Docker
- Navigate to example.com
- Take a screenshot
- Go to Wikipedia and perform a search
- Take another screenshot of the search results
All services are accessible through a single port:
- VNC in browser: http://localhost:8080/
- Chrome remote debugging (for Playwright): http://localhost:8080/json
# View container logs
docker-compose logs -f
# Stop the container
docker-compose down
# Rebuild and restart the container
docker-compose up -d --build