Reputation: 13
IN chrome browser when we open application we are getting Non Secure data:, screenshotLINK
i have tried different solution along with below code still no success!!
String chromeDriverPath = projectLocationPath + "\Resources\chromedriver.exe";
System.setProperty("webdriver.chrome.driver", chromeDriverPath);
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
options.addArguments("test-type");
options.addArguments("--start-maximized");
options.addArguments("--disable-web-security");
options.addArguments("--allow-running-insecure-content");
capabilities.setCapability("chrome.binary",chromeDriverPath);
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
webdriver = new ChromeDriver(capabilities);
driver.get(url);
i have added all required capabilities
URL - https://tsetigndev123.dev.hfgh.com
Upvotes: 1
Views: 7518
Reputation: 101
Had the same problem. Downloading the latest chromedriver.exe from URL and replacing it with the old one fixed the problem for me.
The underlying error message i had was : "cannot get automation extension".
Upvotes: 1
Reputation: 2836
You've disabled security and then tried to access a secure URL. If you mean to access the web site without security, change the url to http://tsetigndev123dev.hfgh.com (leaving out the "s" in "https"
Upvotes: 0