Skip to content

Commit

Permalink
Remove needless Chromedriver options
Browse files Browse the repository at this point in the history
  • Loading branch information
gabebw committed Jun 26, 2019
1 parent 28d8cb1 commit 8f33976
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions templates/chromedriver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@
options = ::Selenium::WebDriver::Chrome::Options.new
options.headless!

capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
chromeOptions: { args: %w(headless disable-gpu) },
)

Capybara::Selenium::Driver.new app,
browser: :chrome,
options: options,
desired_capabilities: capabilities
options: options
end

Capybara.javascript_driver = :headless_chrome

0 comments on commit 8f33976

Please sign in to comment.