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

后端 未结 5 569
执念已碎
执念已碎 2020-11-27 21:12

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.

相关标签:
5条回答
  • 2020-11-27 21:58

    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 through configuring through 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 update was on : 22Aug2017


    GeckoDriver, Selenium and Firefox Browser compatibility chart

    0 讨论(0)
  • 2020-11-27 21:58

    No luck with my EC2 instance, using Python3.6, Selenium3.14, geckodriver25/26, and firefox57/74 I keep getting selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities has anybody found compatible versions of firefox and geckodriver to run on ubuntu 18.04 EC2 instance?

    0 讨论(0)
  • 2020-11-27 22:00

    I found that using Selenium 3.40.0 + geckodriver 0.16.1 with either Firefox 53.0.3 or 54.0.1 worked for me. I did not try any older versions of Firefox or geckodriver. Furthermore, geckodriver 0.17.0 exhibited the same behavior as 0.18.0 - crashing Firefox on RemoteWebDriver.Close() .

    0 讨论(0)
  • 2020-11-27 22:01

    Found a workaround for the WebDriver close + Firefox crash problem. Do this:

    firefoxOptions.addPreference("browser.tabs.remote.autostart", false); firefoxOptions.addPreference("browser.tabs.remote.autostart.1", false); firefoxOptions.addPreference("browser.tabs.remote.autostart.2", false);

    Using

    • GeckoDriver 0.18.0
    • Selenium-Java 3.5.1
    • Firefox 55.0.3

    Sources:

    Stackoverflow and Github

    0 讨论(0)
  • 2020-11-27 22:02

    FireFox version : 60.0.2 works well with the combination of Gecko driver version : 0.18.0 Selenium version : 3.4.0

    0 讨论(0)
提交回复
热议问题