我遇到了一个与Selenium 3自动化UI测试相关的巨大问题。首先,我解释一下如何在Firefox 46上使用Selenium 2.x运行Selenium测试:
- Start selenium server on console: java -jar selenium.jar -firefoxProfileTemplate c:\selenium\firefox_profile
- Run (behat) tests from another console
现在,我已经了解到Firefox 48不再支持webdriver,并转移到Marionette webdriver。好吧,所以我下载了相应的geckodriver和Selenium 3 beta,然后重新开始上述工作流程 - 它起作用了,但是:
我的网站使用自签名的SSL证书。在以前的Selenium版本中,这不是问题,我可以创建一个自定义的Firefox配置文件,并通过添加firefoxProfileTemplate标志来使用它。但是,在Selenium 3和Marionette驱动程序中,该标志不再存在。
那么,如何从命令行指定Selenium / Marionette打开Firefox时要使用的Firefox配置文件?有新选项吗?或者可能是一个全局配置文件?
问候-