Answer the question
In order to leave comments, you need to log in
How to disable extension blocking via ChromeOptions (chromedriver-selenium-java)?
For auto-tests, it is necessary that the Chrome browser starts with the plugin already installed. I figured out how to add a plugin, but when Chrome starts it blocks this plugin.
I run it like this, but it doesn't help...
ChromeOptions options = new ChromeOptions();
options.addArguments("--lang=ru");
options.addArguments("--disable-web-security");
options.addArguments("--allow-outdated-plugins");
options.addArguments("--always-authorize-plugin");
options.addArguments("--enable-easy-off-store-extension-install");
options.addExtensions(new File("путь_к_папке_с_расширением\\extension.crx"));
driver = new ChromeDriver(options);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question