新的Google Chrome更新会在浏览器中显示此消息"您正在使用不受支持的命令行标记:--ignore-certificate-errors.稳定性和安全性将受到影响."
从我读到的关于selenium bug报告的内容来看,临时解决方案就是启动webdriver
options.AddArgument("test-type")
Run Code Online (Sandbox Code Playgroud)
我在创建驱动程序时已经传递了DesiredCapabilities.如何将ChromeOptions和DesiredCapabilities传递给驱动程序?
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability("chrome.switches", Arrays.asList("--incognito"));
ChromeOptions options = new ChromeOptions();
options.addArguments("test-type");
WebDriver driver = new ChromeDriver(capabilities);
Run Code Online (Sandbox Code Playgroud) 我使用谷歌云端点配置
https://cloud.google.com/appengine/docs/python/endpoints/test_deploy
确切地说,我用旗帜运行谷歌铬
--user-data-dir=temp --unsafely-treat-insecure-origin-as-secure=http://localhost:8080
Run Code Online (Sandbox Code Playgroud)
如
https://developers.google.com/explorer-help/#hitting_local_api
然后,谷歌Chrome说我
您正在使用不受支持的命令行(--unsafely-treat-insecure-origin-as-secure)标志.稳定性和安全性将受到影响
如果我访问
_http://本地主机:8080/_ah/API /探险
然后我得到错误:
您正在探索的API是通过HTTP托管的,这可能会导致问题.了解如何将Explorer与本地HTTP API配合使用.
我尝试添加--test-type标志为
_http://stackoverflow.com/questions/32042187/chrome-error-you-are-using-an-unsupported-command-line-flag-ignore-certifcat
然后谷歌铬不说什么,但当我访问
_http://本地主机:8080/_ah/API /探险
我犯了同样的错误.
我的应用程序在localhost中工作正常,除了端点部分,并且所有工作在appspot.com上都很好(端点也是如此)
我用的是最后一个版本:
谢谢你,对不起我的英语
python google-app-engine google-chrome google-cloud-endpoints