At the moment I automate with selenium (page object) a web page that does not allow me to eliminate these pop-up windows for the moment I control this action in the following way:
try { driver.Keyboard.PressKey(Keys.Enter); } catch { }
but still I do not think it is the correct way because it does not recognize the window (because it is the browser and not the page) and the action it does is burst with the presskey.