I am Automating some test cases using Selenium Webdriver and core Java,in chrome browser for one test case on clicking button I am getting browser level notification \'Show
You can use below code to allow chrome to send notifications:
ChromeOptions options=new ChromeOptions();
Map prefs=new HashMap();
prefs.put("profile.default_content_setting_values.notifications", 1);
//1-Allow, 2-Block, 0-default
options.setExperimentalOption("prefs",prefs);
ChromeDriver driver=new ChromeDriver(options);
It works perfectly for me. Let me know if it doesn't work for you. Cheers!!