量角器 - 无效的 SSL 证书 [英] Protractor - invalid SSL certificate

查看:49
本文介绍了量角器 - 无效的 SSL 证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个应用程序,在本地测试时显示无效的 SSL 证书警告.通常我只会添加一个例外并继续.但是无论如何,量角器是否可以忽略这一点?

We have an application and testing this locally shows an invalid SSL certificate warning. Normally I would just add an exception and get on with it. However is there anyway for protractor to ignore this?

我在 selenium 中看到了一些可以忽略 SSL 的功能,但在量角器中似乎找不到任何功能.

I've seen some capabilities in selenium where SSL can be ignored but can't seem to find any in protractor.

推荐答案

这对我有用,(在 conf 文件中):

This works for me, (in conf file):

capabilities: {
    browserName : 'firefox',
    marionette : true,
    acceptInsecureCerts : true
}

希望有所帮助.

这篇关于量角器 - 无效的 SSL 证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆