4
4
4gott3N2015-03-12 12:37:14
Google Chrome
4gott3N, 2015-03-12 12:37:14

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);

What argument needs to be added to prevent chrome from blocking the plugin?
Or another option, how to add exclusions (sites where this plugin will not be blocked)?
Thank you in advance for your help.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question