Due to a recent change made by Mozilla, Sauce Labs will update Firefox GeckoDriver to version 0.31.0 on October 4, 2022 for Firefox versions 90 and later. If you run cross-browser tests on Firefox using Sauce Labs, you may need to update your tests to ensure continued compatibility.
If you run cross-browser tests on Firefox using Sauce Labs, please read on for an important update.
Mozilla recently removed the ability to pass the capability --remote-debugging-port in Firefox GeckoDriver version 0.31.0.
On October 4, 2022, Sauce Labs will update the supported Firefox GeckoDriver to version 0.31.0 for tests on Firefox versions 90 and later. If you use the –remote-debugging-port capability, your tests will fail if you do not take action before October 4, 2022.
Before October 4, 2022, update your Firefox tests to use the supported capability moz:debuggerAddress.
Java example:
FirefoxOptions browserOptions = new FirefoxOptions();
browserOptions.setPlatformName("Windows 10");
browserOptions.setBrowserVersion("latest");
browserOptions.setCapability("moz:debuggerAddress", true);
To test your changes and ensure compatibility against Firefox GeckoDriver version 0.31.0 before the October 4 update, use the Sauce capability geckodriverVersion in your sauce:options to specify Firefox GeckoDriver version 0.31.0.
Java example:
FirefoxOptions browserOptions = new FirefoxOptions();
Map<String, Object> sauceOptions = new HashMap<>();
sauceOptions.put("geckodriverVersion", "0.31.0");
browserOptions.setCapability("sauce:options", sauceOptions);
You can also use the Sauce Labs Platform Configurator to see how to set capabilities in different programming languages.
Please contact Michelle Chen with any questions.