Closed JonasZaoui2 closed 1 month ago
Notifications are already disabled by default:
On the website you showed me, the part at the bottom is not an official browser "notification":
(The part on the bottom is part of the website.)
When notifications are disabled, that part will still show up.
You'll have to interact with it to remove it:
driver.click("#onetrust-accept-btn-handler")
Thanks for your feedback! In fact, I'll need to remove cookies regardless of the url given (for all sites). Is there a solution?
To delete all cookies:
driver.delete_all_cookies()
To delete all cookies:
driver.delete_all_cookies()
Not working ...
driver.delete_all_cookies()
comes directly from raw Selenium:
https://github.com/SeleniumHQ/selenium/blob/030fcf79186e5597269166bd8dfa888e1eda29d7/py/selenium/webdriver/remote/webdriver.py#L614
Thanks ! I tried but it's not working. But i have just found a solution with Selenium,
chrome_options.add_experimental_option("prefs", {
"profile.default_content_setting_values.cookies": 2
})
It's possible with SeleniumBase ?
To disable cookies, upgrade to SeleniumBase 4.31.2
(or newer) and use --disable-cookies
/ disable_cookies=True
Thanks ! But it can't deal with cookies at the bottom of the website right ? Like here : https://soundcloud.com/
Hello ! I want to disable notifications, I tried this command
But it's not working ... I tried on this URL : https://www.nvidia.com/fr-fr/