How to handle show notifications pop up on Chrome in Junit(Java) ?
Hey Emma-Crepeau,
You can handle notifications with the below scripts.
WebDriver driver = new RemoteWebDriver(new URL(URL), caps);
driver.get("https://web-push-book.gauntface.com/demos/notification-examples/");
driver.findElement(By.xpath("//body/main[1]/p[3]/input[1]")).click();
Thread.sleep(2000);