且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Selenium 3中运行或迁移html测试套件?

更新时间:2023-02-21 08:25:40

我还有另一种解决方法,切换到ChromeDriver让我可以再次使用selenium-server-standalone-2.53.1进行测试。我必须修改我的bash脚本以忽略由Selenium的代理证书引起的ssl错误。

I have yet another workaround, switching to the ChromeDriver allowed me to get the tests working on selenium-server-standalone-2.53.1 again. I did have to modify my bash script to ignore the ssl error caused by Selenium's proxy certificate.

#!/bin/bash
java -jar selenium-server-standalone-2.53.1.jar 
     -trustAllSSLCertificates 
     -htmlSuite "*googlechrome" "http://www.aaffordableauto.com"
                "/SeleniumTests/A-Affordable-Suite.html" 
                "/SeleniumTests/A-Affordable-Results.html" > /dev/null

java -jar selenium-server-standalone-2.53.1.jar
     -trustAllSSLCertificates
     -htmlSuite "*googlechrome" "http://www.insureone.com"
                "/SeleniumTests/InsureOne-Suite.html"
                "/SeleniumTests/InsureOne-Results.html" > /dev/null

echo "Finished"