python – Selenium Edge Webdriver Notification Disable
When Selenium opens the Edge WebDriver, there are few notifications popup, which break my code when the code try to click on a button on the website (I think the notification goes on top of the website, so the code cannot find the button it supposed to get). Is there a way to disable all the notifications? I use Python. Here are the three notifications:
GPT suggested to open the Edge WebDriver in private mode. The code runs, but the WebDriver did not open in a private mode:
from selenium import webdriver
from selenium.webdriver.edge.options import Options
edge_options = Options()
edge_options.add_argument("ms:inPrivate")
driver = webdriver.Edge(options=edge_options)
Read more here: Source link
