Reputation: 4727
I am using Selenium with Chrome web driver in python. I would like to automatically accept all cookies when opening any website and get rid of the cookie notification like the following:
Is there any option in Chrome driver that allows to do that?
Upvotes: 0
Views: 5318
Reputation: 978
ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-notifications");
options.addArguments("disable-infobars");
please use this
Upvotes: -1