问题描述
我曾在各种平台上使用 Selenium Java 和 Firefox Web 驱动程序参与过许多项目.我一次又一次地遇到我们使用的 Selenium WebDriver 版本与安装的 Firefox 版本不兼容.
I have worked on a number of projects using Selenium Java and the Firefox Web Driver, on a variety of platforms. Time and again, I come across incompatibilities between the version of the Selenium WebDriver we use and the version of Firefox installed.
第一道防线当然是确保我们使用最新版本的 WebDriver 和最新版本的 FireFox.
The first line of defence is, of course, to make sure that we use the latest version of WebDriver and the latest version of FireFox.
但有时这是不可能的,因为我们使用的是旧版本的 Java,或者仅仅是因为阻力最小的路径是使用随操作系统分发的 Firefox 版本.
Sometimes, that is not possible though, because we are using an older version of Java, or simply because the path of least resistance is to use the version of Firefox that is distributed with the OS.
我真的很想拥有一个可靠的兼容性矩阵,它可以告诉我哪个版本的 Firefox 可以与哪个版本的 Selenium WebDriver 一起使用.在哪里可以找到?
I would really like to have a reliable Compatibility Matrix that tells me which version of Firefox I can use with which version of Selenium WebDriver. Where can I find one?
推荐答案
我最近在寻找类似的东西,发现 Changelog 可能是查找兼容性问题的最佳位置:
I was looking for something similar just recently and found that the Changelog is probably the best place to look at for compatibility questions:
https://github.com/SeleniumHQ/selenium/blob/master/java/变更日志
(以前在 http://selenium.googlecode.com/git/java/CHANGELOG 当 Selenium 托管在 Google Code 上时).
(used to be at http://selenium.googlecode.com/git/java/CHANGELOG when Selenium was hosted on Google Code).
所有最新版本在每个版本的最顶部都支持 Firefox v XX 注释.您必须在评论中阅读一些较旧的版本,但他们会说明该版本最支持哪个版本.
All the most recent version have a support up to Firefox v XX comment at the very top of each version. The older ones you have to read in the comments a little, but they will say which version is the greatest supported for that release.
希望这会有所帮助.
这篇关于我在哪里可以找到权威的 Selenium WebDriver 到 Firefox 兼容性矩阵?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!