mirror of
https://github.com/jcwimer/watir-docker
synced 2026-03-24 18:14:42 +00:00
676 B
676 B
watir-docker
This is a docker image for running watir. Currently it only has Chrome installed but there are plans for Firefox in the future.
Usage
- In your watir script, use these flags for Chrome
chrome_args = ['--ignore-certificate-errors', '--disable-popup-blocking', '--disable-translate', '--disable-notifications', '--disable-gpu', '--no-sandbox', '--disable-dev-shm-usage'] - Then run Chrome like so:
browser = Watir::Browser.new :chrome, options: {args: chrome_args} - Now cd into your project
- Run the image and mount your project to /app
docker run --rm --network host -it -v $(pwd):/app jcwimer/watir-docker /usr/local/bin/ruby /app/YOUR_SCRIPT.rb