const {Builder, By, Key} = require('selenium-webdriver');
const {Options} = require('selenium-webdriver/chrome');
const options = new Options().setAlertBehavior('dismiss');
let driver = new Builder().forBrowser('chrome').setChromeOptions(options).build();
driver.get('https://www.facebook.com/');
(async function demo() {
(await driver).findElement(By.css('#email')).sendKeys('***');
(await driver).findElement(By.css('#pass')).sendKeys('***', Key.RETURN);
})();
/* Seeking a solution to prevent the "www.facebook.com wants to show you notifications" alert from appearing in Chrome. How can the Options() be modified to automatically accept or block this notification? Thank you for your assistance! */