Answer the question
In order to leave comments, you need to log in
How to block notification permission request in Selenium?
How can I block or automatically acknowledge such notifications in Chrome:
This window can appear on any page and the entire screen area becomes gray, because of this Selenium cannot interact with elements:
is not clickable at point (627, 204). Other element would receive the click:
Answer the question
In order to leave comments, you need to log in
chrome_options = webdriver.ChromeOptions()
prefs = {"profile.default_content_setting_values.notifications" : 2}
chrome_options.add_experimental_option("prefs",prefs)
driver = webdriver.Chrome(chrome_options=chrome_options)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question