0
good afternoon.
I’m trying to enable Adobe Flash Player in Headless Chrome, but I’m not getting it.
Follows 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 many sites talking about using Hashmap, but when I try to use it, you don’t recognize it at all.
Can you help me please?
Thanks in advance.