Skip to content

Commit

Permalink
Modify Chrome driver options in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jp524 committed Nov 9, 2023
1 parent 4a7cbb5 commit f4696dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/support/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
Capybara.register_driver :selenium_chrome_headless_in_container do |app|
options.add_argument("--headless")
options.add_preference(:download, prompt_for_download: false, default_directory: "/home/seluser/Downloads")
options.add_argument("--disable-dev-shm-usage")

Capybara::Selenium::Driver.new app,
browser: :remote,
Expand Down

0 comments on commit f4696dc

Please sign in to comment.