Is there a way to prevent popups or alerts from appearing in the Chrome browser while using Selenium with Java to access document elements and capture scrolling screenshots? Sometimes, popups can obstruct parts of the window and interfere with screenshot capture. Are there any generic scripts or JavaScript solutions that can help block these custom popups on most websites?