Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
332 views
in Technique[技术] by (71.8m points)

Selenium WebDriver 3.4.0 + geckodriver 0.18.0 + Firefox ?? - which combination works?

I'm running Selenium 2.x with Firefox 47.0.2 on Windows Server 2008R2 using .Net. I'm running x64 code.

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.

Here's what I have found:

  • Firefox 51.0.1 - too old - Geckodriver complains "Unable to find a matching set of capabilities"
  • Firefox 52.0.2 - I get an IndexOutOfBoundException when calling setPageLoadTimeout
  • Firefox 52.2.1esr - I get an IndexOutOfBoundException when calling setPageLoadTimeout
  • Firefox 53.0.3 - upon exit, the Firefox window stays up, needs to be closed manually
  • Firefox 54.0.1 (tried both x64 and X86) - crashes upon exit
  • Firefox 55b9 - crashes upon exit

Is there a combination of selenium 3.4.0 + geckodriver + Firefox that works on .Net for you?

Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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).

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 by configuring through an instance of DesiredCapabilities() Class and passing it as an argument while initializing the Web Browser)

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.

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 Dependencies:

Selenium 3.4.0 now recommends Geckodriver v0.16.0 strongly.

Selenium 3.3.1 better supports Geckodriver v0.15.0.


GeckoDriver Dependencies:

geckodriver v0.18.0 now recommends Firefox 53 and greater

geckodriver v0.16.0 is only compatible with Selenium 3.4 and greater.


Answer:

Selenium 3.5.0 + GeckoDriver 0.18.0 + Firefox 55.0.2 combo works best at my end.


Last updated on : 22Aug2017


GeckoDriver, Selenium and Firefox Browser compatibility chart

geckodriver_versions


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...