Skip to content

Instantly share code, notes, and snippets.

@International
Forked from richdownie/headless ruby cukes
Created May 21, 2017 08:30
Show Gist options
  • Save International/525ef43ade232237882bbc809d4c93b2 to your computer and use it in GitHub Desktop.
Save International/525ef43ade232237882bbc809d4c93b2 to your computer and use it in GitHub Desktop.
require 'cucumber'
require 'selenium-webdriver'
# require 'cukehub' # optional, but recommended. See cukehub.com for more details
caps = Selenium::WebDriver::Remote::Capabilities.chrome(chromeOptions: { binary: "/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary",
args: [ "--headless" ]})
Before do
@browser = Selenium::WebDriver.for :chrome, desired_capabilities: caps
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment