I got an issue with Selenium throwing timeout exception because of a pop up window
timeout exception
unexpected alert open not provide any stacktrace inform
This should do the trick:
driver.switchTo().alert().accept();