How can I disable all browser pop ups on Chrome in Selenium pytest?

How can I disable all browser pop ups on Chrome in Selenium pytest ?

Hi Tom!

You can disable pop-ups in Selenium pytest on Chrome by using the below command:

options. AddExcluded_Argument (“disable-popup-blocking”);