I'd like to stop all Chrome Browser notifications whenever I run a selenium python file.
Example of what I'm referring to:
I found the following code online that theoretically blocks all chrome browser notifications:
from selenium.webdriver.chrome.options import Options
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
option = Options()
option.add_argument('--disable-notifications')
***driver = webdriver.Chrome(executable_path=ChromeDriverManager().install(), chrome_options=option)
driver.get("https://www.example.com")
However, whenever I run the code, I get the following error at the *** line:
Any help would be greatly appreciated. Thank you.

