how to disabling notification using selenium for firefox browser

后端 未结 3 579
后悔当初
后悔当初 2021-01-03 03:33

\"enter

I want to complete disable the notification when i launch a firefox browser

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-03 04:15

    For Python:

    options = Options()
    options.set_preference('dom.webnotifications.enabled', False)
    

提交回复
热议问题