0
Guys, I need the Chrome instance opened via Webdriver come with a plugin already installed "Always" that I open.
I found some content, but it doesn’t work here. They can tell if it was because of the Seleniumdriver update?
Follows the code:
import java.io.File;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
public class Testes {
    @Test
    public void testeNavegador() {
        try {
            WebDriver navegador = null;
            System.setProperty("webdriver.chrome.driver", "C:\\chromedriver.exe");
            ChromeOptions chromeOptions = new ChromeOptions();
            chromeOptions.addExtensions(new File("C:\\Office-Editor_v130.54.56.crx"));
            DesiredCapabilities desiredCapabilities = DesiredCapabilities.chrome();
            desiredCapabilities.setCapability(ChromeOptions.CAPABILITY,chromeOptions);
            navegador = new ChromeDriver(desiredCapabilities);
            navegador.get("chrome://extensions/");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
Some solution?