How to disable all browser pop ups on Chrome with C#-MSTest?

How to disable all browser pop ups on Chrome with C#-MSTest?

Hey Richard,

To achieve this, you can pass disable-popup-blocking argument under the excludeSwitches of a chromeOptions capability, as shown below:

using OpenQA. Selenium. Chrome;

ChromeOptions options = new ChromeOptions (); 
options. AddExcludedArgument (“disable-popup-blocking”);