my chromedriver setup for my Capybara (selenium) app is fairly standard:asdf
Capybara.register_driver :chromeXYZ do |app|
options = {}
options[:args] = ['disable-gpu',
'window-size=1280,1024',
'no-sandbox',
'disable-dev-shm-usage']
Capybara::Selenium::Driver.new(app, browser: :chrome,
options: Selenium::WebDriver::Chrome::Options.new(options))
end
in my test while NOT running headless (as above), I see this dialog pop up a few times in the test run:
Leave site?
Changes you made may not be saved.
Is there a chrome flag to disable that dialog? It doesn't seem to block anything or cause the test to fail, because when the test runner (Ruby) shuts down the chromedriver, it seems like it closes both the real window and the dialog box at the same time.
Jason