Skip to content

Commit

Permalink
headless chrome fullscreen option changed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-voronenko committed Aug 3, 2017
1 parent dbe5ee1 commit 11b5f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/config/templates/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module CapybaraHelpers

Capybara.register_driver :headless_chrome do |app|
startup_flags = ['headless']
startup_flags << 'start-maximized' if Howitzer.maximized_window
startup_flags << 'start-fullscreen' if Howitzer.maximized_window
startup_flags.concat(Howitzer.headless_chrome_flags.split(/\s*,\s*/)) if Howitzer.headless_chrome_flags
options = Selenium::WebDriver::Chrome::Options.new(args: startup_flags)
params = { browser: :chrome, options: options }
Expand Down

0 comments on commit 11b5f5e

Please sign in to comment.