What's the best way to block ads when running the Browser Selenium Test on the platform?

What’s the best way to block ads when running the Browser Selenium Test on the platform?

Hello Richard.hall,

You can pass this extension to your google:chromeOptions

using chromeOptions:

ChromeOptions chromeOptions = new ChromeOptions();
                        chromeOptions.addExtensions(new File("/Users/chandrajeetnagar/Desktop/Adblock-Plusfree-ad-blocker.crx"));

This extension will be installed in your web browser before your test come to execution.