0

there is such a question how to implement so that Selenium resolves in that case notifications like this photo https://prod-cdn.sumo.mozilla.net/uploads/gallery/images/2017-10-18-05-45-38-20e1d7.png

it is desirable that he press himself I will be very grateful

Kota
  • 21
  • 5

1 Answers1

0

Use Following Code :

profile = webdriver.FirefoxProfile()
profile.set_preference('permissions.default.desktop-notification', 1)
driver = webdriver.Firefox(firefox_profile=profile)
Pritam Maske
  • 2,670
  • 2
  • 22
  • 29