I just want to disable Chrome notifications in the Chrome opened by a Selenium Java application. (using java code)
Notifications like this one:
The
Someone needs this for Capybara or Watir, you can pass the --disable-notifications
as an argument like "--start-fullscreen", "--disable-infobars"
. The following workes:
Capybara.register_driver :chrome do |app|
args = ["--disable-notifications"]
Capybara::Selenium::Driver.new(app, {:browser => :chrome, :args => args})
end