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

后端 未结 5 602
执念已碎
执念已碎 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 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

提交回复
热议问题