Good afternoon.
I'm trying to enable Adobe Flash Player in Chrome's Headless, but I'm not getting it.
Follow my code:
public class testes {
@Test
public void inicializa() {
ChromeOptions options = new ChromeOptions();
options.addArguments("--start-maximized");
options.addArguments("--ignore-certificate-errors");
options.addArguments("--disable-popup-blocking");
options.addArguments("--incognito");
options.setExperimentalOption("excludeSwitches", Arrays.asList("disable-component-update"));
options.addArguments(Arrays.asList("--always-authorize-plugins","--allow-outdated-plugins"));
WebDriver driver = new ChromeDriver(options);
driver.manage().window().maximize();
driver.get(url);
}
}
I've seen a lot of websites talking about using HashMap, but when I try to use it, I do not recognize it in any way.
Can you help me out?
Thank you in advance.