How to click Allow on Show Notifications popup using Selenium Webdriver
Please Follow below steps : A) USING JAVA : For Old Chrome Version (<50): //Create a instance of ChromeOptions class ChromeOptions options = new ChromeOptions(); //Add chrome switch to disable notification – “**–disable-notifications**” options.addArguments(“–disable-notifications”); //Set path for driver exe System.setProperty(“webdriver.chrome.driver”,”path/to/driver/exe”); //Pass ChromeOptions instance to ChromeDriver Constructor WebDriver driver =new ChromeDriver(options); For New Chrome Version (>50): … Read more