Disable Chromium sandbox for Apparition

This commit is contained in:
Dennis Schubert 2022-10-29 05:59:05 +02:00
parent 7c450b4446
commit bd2a45615f
No known key found for this signature in database
GPG key ID: 5A0304BEA7966D7E

View file

@ -26,7 +26,11 @@ Capybara.server = :webrick
Capybara.register_driver :apparition do |app|
# Pass headless: false here if you need to see the browser
Capybara::Apparition::Driver.new(app, headless: true)
Capybara::Apparition::Driver.new(
app,
headless: true,
browser_options: %i[no_sandbox disable_setuid_sandbox disable_gpu]
)
end
Capybara.javascript_driver = :apparition