Download the latest release (windows version) based on whether your Firefox is 32-bit or 64-bit.
WATIR UNABLE TO FIND MOZILLA GECKODRIVER CODE
In the snippets below, Recommended Code contains our recommendations for Selenium 4, while those marked Deprecated contain code commonly used in Selenium 3.x or below.Īll valid sauce:options parameters listed in the snippets are described in our Test Configuration Options documentation. Follow the steps given below to download Geckodriver 1. For Sauce Labs testing, however, you'll need to create a Hash or Dictionary of Sauce Labs-specific settings and place it inside of a sauce:options object. If you use a Browser Options class, no additional action is required. This rule applies to both browser-specific capabilities and Sauce Labs-specific capabilities.Īs an example, Firefox-specific capabilities need to be nested inside of moz:firefoxOptions or other moz: keys. You can use the following defined W3C WebDriver-compliant capabilities in your Sauce Labs tests:Īny capability not listed above must include a vendor prefix (i.e., moz:firefoxOptions, goog:chromeOptions, ms:edgeOptions).
Selenium 4 deprecates support for legacy JSON Wire Protocol (JWP). Although Selenium 4 has JavaScript bindings, we recommend using WebdriverIO instead when running tests on Sauce Labs.