From f9d9465d7e4ac6a0fa4f21038d5fef4acfd01de8 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Thu, 21 Mar 2019 12:28:11 +0000 Subject: [PATCH] Updated README with usage info --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 5c8768e..8041afd 100644 --- a/README.md +++ b/README.md @@ -1 +1,8 @@ # 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 +1. 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']` +2. Then run Chrome like so: `browser = Watir::Browser.new :chrome, options: {args: chrome_args}` +3. Now cd into your project +4. 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`