当我们打开应用程序,我们正在非安全数据:, screenshotLINK在Chrome的驱动硒我们得到误差在Chrome浏览器不安全的数据:,
我有下面的代码一起尝试了不同的解决方案仍然没有成功!
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);
我添加了所有必要的能力
网址 - https://tsetigndev123.dev.hfgh.com