0

I am trying to automate a website to download some wallpapers using chromewebdriver, selenium and python. While now I am able to get the website but the notification permission popup is coming up before the selector selects the images.

is there a way to accept/block the popup using the driver? thanks

  • 1
    yes... there is an option your can set for this when you initialize the driver. In Firefox it's "dom.webnotifications.enabled" (set to false to turn off), and in Chrome it's "profile.default_content_setting_values.notifications" (set to "2" for choice "no") See this thread: https://stackoverflow.com/questions/43908995/how-to-disabling-notification-using-selenium-for-firefox-browser – pcalkins Jun 09 '21 at 19:52

0 Answers0