Selenium WebDriver 3.4.0 + geckodriver 0.18.0 + Firefox ?? -哪种组合有效? [英] Selenium WebDriver 3.4.0 + geckodriver 0.18.0 + Firefox ?? - which combination works?
问题描述
我正在使用.Net在Windows Server 2008R2上使用Firefox 47.0.2运行Selenium2.x.我正在运行x64代码.
I'm running Selenium 2.x with Firefox 47.0.2 on Windows Server 2008R2 using .Net. I'm running x64 code.
我正在尝试升级到Selenium 3.40 + geckdriver 0.18.0,但找不到运行100%的Firefox版本.除非另有说明,否则我使用的是x64英文版本的Firefox.它们是从此处下载的.
I'm trying to upgrade to Selenium 3.40 + geckdriver 0.18.0 but I can't find a version of Firefox that runs 100%. I'm using x64 en-US versions of Firefox unless otherwise noted. They were downloaded from here.
这就是我所发现的:
- Firefox 51.0.1-太旧了-Geckodriver抱怨找不到匹配的功能集"
- Firefox 52.0.2-调用setPageLoadTimeout时出现IndexOutOfBoundException
- Firefox 52.2.1esr-调用setPageLoadTimeout时出现IndexOutOfBoundException
- Firefox 53.0.3-退出后,Firefox窗口保持打开状态,需要手动关闭
- Firefox 54.0.1(同时尝试了x64和X86)-退出时崩溃
- Firefox 55b9-退出时崩溃
是否存在可以在.Net上运行的硒3.4.0 + geckodriver + Firefox的组合?
Is there a combination of selenium 3.4.0 + geckodriver + Firefox that works on .Net for you?
推荐答案
自我们从旧版 Firefox
版本迁移到 <基于c1> 的 Mozilla Firefox
版本(从 Firefox 48 开始).
This Question have been surfacing out quite often for sometime now since we migrated from the legacy Firefox
releases to Marionette
based Mozilla Firefox
releases (beginning with Firefox 48).
通常,每个 GeckoDriver
版本都支持每个版本的 Mozilla Firefox
版本(从Firefox 48开始),其中属性 "marionette"
需要设置为 true
(通过默认或通过configuring
通过 DesiredCapabilities 类并将其作为参数传递给初始化Web Browser
)
In general, each GeckoDriver
release supports each version of Mozilla Firefox
releases (beginning with Firefox 48) where the property "marionette"
needs to be set to true
(either by default or through configuring
through DesiredCapabilities Class and passing it as an argument while initializing the Web Browser
)
如果您使用的是旧版 Firefox
版本(直到 Firefox 47.x ), GeckoDriver
仍然可以使用,但是您有将属性 "marionette"
显式设置为 false
If you are working with the legacy Firefox
releases (till Firefox 47.x) GeckoDriver
still works but you have to explicitly set the property "marionette"
to false
最近,在 GeckoDriver
, Selenium
和 Mozilla Releases
之间宣布了某些依赖关系. GeckoDriver
Release Notes
明确指出所有主要/次要 New Feature Addition
, Enhancements
, Bug Fixes
和 Download Location
分别在此 链接中> .
Recently, some dependency were announced between GeckoDriver
, Selenium
and Mozilla Releases
. The GeckoDriver
Release Notes
clearly states all the major/minor New Feature Addition
, Enhancements
,Bug Fixes
and Download Location
separately in this link.
硒依赖性:
Selenium 3.4.0
现在强烈推荐 Geckodriver v0.16.0
.
Selenium 3.4.0
now recommends Geckodriver v0.16.0
strongly.
Selenium 3.3.1
更好地支持 Geckodriver v0.15.0
.
Selenium 3.3.1
better supports Geckodriver v0.15.0
.
GeckoDriver依赖项:
geckodriver v0.18.0
现在推荐 Firefox 53 and greater
geckodriver v0.18.0
now recommends Firefox 53 and greater
geckodriver v0.16.0
仅与 Selenium 3.4 and greater
兼容.
geckodriver v0.16.0
is only compatible with Selenium 3.4 and greater
.
答案:
Selenium 3.5.0 + GeckoDriver 0.18.0 + Firefox 55.0.2 组合最适合我.
Answer:
Selenium 3.5.0 + GeckoDriver 0.18.0 + Firefox 55.0.2 combo works best at my end.
Last update was on : 22Aug2017
Last update was on : 22Aug2017
GeckoDriver ,硒和 Firefox浏览器兼容性图表
GeckoDriver, Selenium and Firefox Browser compatibility chart
这篇关于Selenium WebDriver 3.4.0 + geckodriver 0.18.0 + Firefox ?? -哪种组合有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!