you can use:
chrome_options = Options()
chrome_options.add_argument("--disable-notifications")
browser = webdriver.Chrome(chrome_options=chrome_options)
More Related Contents:
- java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property
- Error Loading Extension Could not load extension from ‘C:\..\Local\Temp\scoped_dir6312_32763\internal’. Loading of unpacked extensions is disabled
- org.openqa.selenium.WebDriverException: unknown error: call function result missing ‘value’
- java.lang.IllegalStateException: The driver executable does not exist: while trying to execute tests through Selenium, ChromeDriver and Chrome
- Could not load extension from scoped_dir6312_32763/internal.Loading of unpacked extensions is disabled by the administrator with ChromeDriver Selenium
- Chrome is being controlled by automated test software
- Syntax error on token “else”, delete this token [closed]
- Selenium – Basic Authentication via url
- Mac OSX – IllegalStateException: The driver is not executable:
- ChromeDriver and WebDriver for Selenium through TestNG results in 4 errors
- How do I protect the ports that chromedriver use?
- org.openqa.selenium.WebDriverException: chrome not reachable – when attempting to start a new session
- java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;) with Selenium, gradle and ChromeDriver
- WebDriverException: unknown error: Runtime.executionContextCreated has invalid ‘context’: while initializing Chrome browser
- getText() method of selenium chrome driver sometimes returns an empty string
- Run chrome browser in inconginto Mode in Selenium
- How to set default download directory in selenium Chrome Capabilities?
- Chrome 59 and Basic Authentication with Selenium/Fluentlenium
- How to handle authentication popup in Chrome with Selenium WebDriver using Java
- Take full page screenshot in Chrome with Selenium
- ChromeDriver – Disable developer mode extensions pop up on Selenium WebDriver automation
- org.openqa.selenium.remote.service.DriverService$Builder.createArgs()Lcom/google/common/collect/ImmutableList; with Selenium 3.5.3 Chrome 76
- Way to open Selenium browser not overlapping my current browser
- org.openqa.selenium.remote.http.ConnectionFailedException: Unable to establish websocket connection Selenium ChromeDriver and Chrome v111
- How to disable push-notifications using Selenium for Firefox and Chrome?
- How to open a link in new tab (chrome) using Selenium WebDriver?
- WebDriver vs ChromeDriver
- org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start. Build info: version: ‘unknown’, revision: ‘unknown’
- How to mouse hover using java through selenium-webdriver and Java
- Set Chrome’s language using Selenium ChromeDriver