這是本文件的舊版!


SSL Certificate Error On IE11

這陣子我們將web連線預設由原本的http轉到https,然而在透過IE做驗收測試時,出現了Certificate Error而導致測試無法繼續下去:

本篇是分享我實驗過與可能的解決方法。

我們使用selenium grid的方式做測試,selenium的node搭載環境如下:

  • OS: Windows2012 R2 x64
  • IE: IE 11.0.9600.18618
  • selenium-server-standalone: 3.8.1
  • IEDriverServer: 3.4.0.0 (32.bit)

接下來分享我實驗的方法:

使用desired_capabilities

我在Open Browser的keyword之後加入以下參數:

desired_capabilities=acceptSslCerts:true;trustAllSSLCerficates:true

更新IEDriverServer

我將版本更新到3.8.0.0,但Open Browser會有錯誤訊息;礙於時間關係,就不繼續追蹤下去。