We are proud to announce the next major release of geckodriver 0.34.0. It ships with a new extension feature that has been often requested by the WebDriver community.
With geckodriver being an open source project, we are grateful to get contributions from people outside of Mozilla:
- Mitesh Gulecha updated the Print command to also allow numbers to be used for printing single pages as PDF.
- James Hendry refactored our error handling code, now utilizing the anyhow and thiserror crates, and as such removed the
unknown patherror type which is not part of the WebDriver specification.
- Razvan Cojocaru improved the Firefox version check to allow Firefox distributions with custom prefixes for the application name.
Support for “Virtual Authenticators”
Virtual Authenticators serve as a WebDriver Extension designed to simulate user authentication (WebAuthn) on web applications during automated testing. This functionality encompasses a range of methods, including passwords, biometrics, and security keys.
Geckodriver supports all available commands:
- Add Virtual Authenticator
- Remove Virtual Authenticator
- Add Credential
- Get Credentials
- Remove Credential
- Remove All Credentials
- Set User Verified
Dynamic Port Selection: Adapting to Available Ports at Runtime
Specifying –port=0 as an argument allows geckodriver to dynamically find and use an available free port on the system. It’s important to note that when employing this argument, the final port value must be retrieved from the standard output (
- While searching for a default Firefox installation on the system, geckodriver used the Contents/MacOS/firefox-bin executable instead of the binary specified in the app bundle’s Info.plist file. This behavior resulted in a malfunction due to a regression in Firefox, particularly affecting the Firefox 121 release.
As usual links to the pre-compiled binaries for popular platforms and the source code are available on the GitHub repository.