sunil wali
sunil wali

Reputation: 13

In Chrome driver selenium we are getting error as Non secure data:,

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

Answers (2)

phpaul89
phpaul89

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

Bill Hileman
Bill Hileman

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

Related Questions