DEV环境的证书过期,给https的selenium测试带来了不少问题。
简要列举2个walk around:
1. 服务器使用selenium server:
添加 -trustAllSSLCertificates 参数即可。
2. 服务器使用selenuim grid:
(1) 设置browser的属性为"*chrome"
(2) 对于ff下载插件"Remeber certificate excetion".
(3) 在ff的profile中,添加上这些例外的证书。测试时候使用该profile