Chrome Driver getting stuck/unable to launch url when adding extensions
ChromeBrowser 74.0.3729.131 (Official Build) (64-bit)
ChromeDriver 74.0.3729.6
SeleniumDriver selenium-server-standalone-3.141.59
public class ChromeBrowser {
public static void main(String args[]){
try{
//Code working with out extensions
System.setProperty("webdriver.chrome.driver", "./drivers/chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://www.google.com");
//Code failed with extensions
ChromeOptions options = new ChromeOptions();
options.addExtensions(new File("./drivers/modheader_2_1_2.crx"));
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
ChromeDriver drivers = new ChromeDriver(capabilities);
drivers.get("http://www.google.com");
}
catch(Exception e){
System.out.println("Exception caught :: "+e.getMessage());
}
}
}