//Set the chrome path
System.setProperty("webdriver.chrome.driver", "D:\\chromedriver.exe");
// Create object of ChromeOptions class
ChromeOptions options = new ChromeOptions();
// add parameter which will disable the extension
options.addArguments("--disable-extensions");
// Start the chrome session
WebDriver driver = new ChromeDriver(options);
No comments:
Post a Comment